Skip to content

Commit

Permalink
fix(server): driveCapacityOverrideMbが公開情報になっているのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Dec 30, 2022
1 parent b2d6561 commit 7157fd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/backend/src/core/entities/UserEntityService.ts
Expand Up @@ -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,
Expand Down Expand Up @@ -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 ? {
Expand Down

0 comments on commit 7157fd6

Please sign in to comment.