mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-11-15 07:55:49 +01:00
refactor collections
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user