From 7157fd663c0b3c2a6a3e08fbed22df0871053698 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 31 Dec 2022 08:46:27 +0900 Subject: [PATCH] =?UTF-8?q?fix(server):=20driveCapacityOverrideMb=E3=81=8C?= =?UTF-8?q?=E5=85=AC=E9=96=8B=E6=83=85=E5=A0=B1=E3=81=AB=E3=81=AA=E3=81=A3?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=82=8B=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/entities/UserEntityService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/core/entities/UserEntityService.ts b/packages/backend/src/core/entities/UserEntityService.ts index 1fafbd4f1..3f7575549 100644 --- a/packages/backend/src/core/entities/UserEntityService.ts +++ b/packages/backend/src/core/entities/UserEntityService.ts @@ -409,7 +409,6 @@ export class UserEntityService implements OnModuleInit { themeColor: instance.themeColor, } : undefined) : undefined, onlineStatus: this.getOnlineStatus(user), - driveCapacityOverrideMb: user.driveCapacityOverrideMb, ...(opts.detail ? { url: profile!.url, @@ -446,6 +445,9 @@ export class UserEntityService implements OnModuleInit { userId: user.id, }).then(result => result >= 1) : false, + ...(isMe || opts.includeSecrets ? { + driveCapacityOverrideMb: user.driveCapacityOverrideMb, + } : {}), } : {}), ...(opts.detail && isMe ? {