diff --git a/backend/src/users/users.resolver.ts b/backend/src/users/users.resolver.ts index 4a9df98..a546b6e 100644 --- a/backend/src/users/users.resolver.ts +++ b/backend/src/users/users.resolver.ts @@ -97,7 +97,12 @@ export class UsersResolver { @SiteRoles(UserRole.ADMIN) async updateDefaultAvatar( @Args('file', { type: () => GraphQLUpload }) file: FileUpload, - ) {} + ) { + return ( + (await this.usersService.deleteDefaultAvatar()) && + (await this.usersService.createDefaultAvatar(file)) + ); + } @Mutation((returns) => ID) async createDummyUser(): Promise {