refactor collections

This commit is contained in:
rubikscraft
2022-03-27 23:56:25 +02:00
parent 904ba2ee4b
commit 07ef1b1216
12 changed files with 147 additions and 113 deletions

View File

@@ -41,13 +41,13 @@ export class MainAuthGuard extends AuthGuard(['jwt', 'guest']) {
const permissions = this.extractPermissions(context);
if (HasFailed(permissions)) {
this.logger.warn('222' + permissions.getReason());
this.logger.warn('Route Permissions: ' + permissions.getReason());
throw new InternalServerErrorException();
}
const userPermissions = await this.userRolesService.getPermissions(user);
if (HasFailed(userPermissions)) {
this.logger.warn('111' + userPermissions.getReason());
this.logger.warn('User Permissions: ' + userPermissions.getReason());
throw new InternalServerErrorException();
}

View File

@@ -25,6 +25,6 @@ export class DemoManagerService {
private async executeAsync() {
this.logger.log('Executing demo cleanup');
await this.imagesService.deleteAll();
await this.imagesService.deleteAll(true);
}
}