Skip to content

Commit

Permalink
🐛 Fix roles + containers stream
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinbreiz committed Jan 3, 2024
1 parent c7d1f55 commit 414a1ac
Show file tree
Hide file tree
Showing 3 changed files with 248 additions and 320 deletions.
10 changes: 5 additions & 5 deletions src/dashboard/dashboard.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ export class DashboardService {
subject$.next(dashboard);
});

// const containers$ = this.containersService.streamContainers().subscribe((containerReplyDto) => {
// dashboard.containers = containerReplyDto.containers;
// subject$.next(dashboard);
// });
const containers$ = this.containersService.streamContainers().subscribe((containerReplyDto) => {
dashboard.containers = containerReplyDto.containers;
subject$.next(dashboard);
});

const blacklist$ = this.blacklistService.getBlackList$(call).subscribe((blacklistReplyDto) => {
dashboard.ips = blacklistReplyDto.ips;
Expand All @@ -36,7 +36,7 @@ export class DashboardService {

call.on('cancelled', () => {
logs$.unsubscribe();
// containers$.unsubscribe();
containers$.unsubscribe();
blacklist$.unsubscribe();
});

Expand Down
1 change: 1 addition & 0 deletions src/user/user.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export class UserRepository {
password: hashSync(password, 10),
admin: true,
activated: true,
roles: [RoleEnum.ADMIN],
},
},
{
Expand Down
Loading

0 comments on commit 414a1ac

Please sign in to comment.