diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-04-24 15:07:26 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-04-24 15:07:26 -0400 |
| commit | 335603f07379d27328373d024c78995c70ccf9c1 (patch) | |
| tree | ecdfc6eed4b86e3b76ae9ae690b6f9e3f22b24cb /packages/backend/src/core/entities | |
| parent | Merge remote-tracking branch 'origin/merge/2025-03-24' into merge/2025-03-24 (diff) | |
| download | sharkey-335603f07379d27328373d024c78995c70ccf9c1.tar.gz sharkey-335603f07379d27328373d024c78995c70ccf9c1.tar.bz2 sharkey-335603f07379d27328373d024c78995c70ccf9c1.zip | |
fix null checks for background in UserEntityService.ts
Diffstat (limited to 'packages/backend/src/core/entities')
| -rw-r--r-- | packages/backend/src/core/entities/UserEntityService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/entities/UserEntityService.ts b/packages/backend/src/core/entities/UserEntityService.ts index 16425bb6ce..56506a5fa4 100644 --- a/packages/backend/src/core/entities/UserEntityService.ts +++ b/packages/backend/src/core/entities/UserEntityService.ts @@ -645,8 +645,8 @@ export class UserEntityService implements OnModuleInit { lastFetchedAt: user.lastFetchedAt ? user.lastFetchedAt.toISOString() : null, bannerUrl: user.bannerId == null ? null : user.bannerUrl, bannerBlurhash: user.bannerId == null ? null : user.bannerBlurhash, - backgroundUrl: user.backgroundUrl == null ? null : user.backgroundUrl, - backgroundBlurhash: user.backgroundBlurhash == null ? null : user.backgroundBlurhash, + backgroundUrl: user.backgroundId == null ? null : user.backgroundUrl, + backgroundBlurhash: user.backgroundId == null ? null : user.backgroundBlurhash, isLocked: user.isLocked, isSuspended: user.isSuspended, location: profile!.location, |