fix null checks for background in UserEntityService.ts
This commit is contained in:
@@ -645,8 +645,8 @@ export class UserEntityService implements OnModuleInit {
|
|||||||
lastFetchedAt: user.lastFetchedAt ? user.lastFetchedAt.toISOString() : null,
|
lastFetchedAt: user.lastFetchedAt ? user.lastFetchedAt.toISOString() : null,
|
||||||
bannerUrl: user.bannerId == null ? null : user.bannerUrl,
|
bannerUrl: user.bannerId == null ? null : user.bannerUrl,
|
||||||
bannerBlurhash: user.bannerId == null ? null : user.bannerBlurhash,
|
bannerBlurhash: user.bannerId == null ? null : user.bannerBlurhash,
|
||||||
backgroundUrl: user.backgroundUrl == null ? null : user.backgroundUrl,
|
backgroundUrl: user.backgroundId == null ? null : user.backgroundUrl,
|
||||||
backgroundBlurhash: user.backgroundBlurhash == null ? null : user.backgroundBlurhash,
|
backgroundBlurhash: user.backgroundId == null ? null : user.backgroundBlurhash,
|
||||||
isLocked: user.isLocked,
|
isLocked: user.isLocked,
|
||||||
isSuspended: user.isSuspended,
|
isSuspended: user.isSuspended,
|
||||||
location: profile!.location,
|
location: profile!.location,
|
||||||
|
|||||||
Reference in New Issue
Block a user