Skip to content

Commit

Permalink
fix !avatarDecorations
Browse files Browse the repository at this point in the history
  • Loading branch information
caipira113 committed Nov 12, 2023
1 parent a50aa90 commit 135aa97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/backend/src/core/AvatarDecorationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ export class AvatarDecorationService implements OnApplicationShutdown {
const avatarDecorations = userData.avatarDecorations?.[0];

if (!avatarDecorations) {
const updates = {} as Partial<MiUser>;
updates.avatarDecorations = [];
await this.usersRepository.update({id: user.id}, updates);

Check failure on line 145 in packages/backend/src/core/AvatarDecorationService.ts

View workflow job for this annotation

GitHub Actions / lint (backend)

A space is required after '{'

Check failure on line 145 in packages/backend/src/core/AvatarDecorationService.ts

View workflow job for this annotation

GitHub Actions / lint (backend)

A space is required before '}'
return;
}

Expand Down

0 comments on commit 135aa97

Please sign in to comment.