From 335603f07379d27328373d024c78995c70ccf9c1 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Thu, 24 Apr 2025 15:07:26 -0400 Subject: [PATCH] fix null checks for background in UserEntityService.ts --- packages/backend/src/core/entities/UserEntityService.ts | 4 ++-- 1 file 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,