summaryrefslogtreecommitdiff
path: root/packages/backend/src/core
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-04-24 15:07:26 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-04-24 15:07:26 -0400
commit335603f07379d27328373d024c78995c70ccf9c1 (patch)
treeecdfc6eed4b86e3b76ae9ae690b6f9e3f22b24cb /packages/backend/src/core
parentMerge remote-tracking branch 'origin/merge/2025-03-24' into merge/2025-03-24 (diff)
downloadsharkey-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')
-rw-r--r--packages/backend/src/core/entities/UserEntityService.ts4
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,