From 95e7e003fdc050f1b40aff0c26b668011a490d0d Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 7 May 2023 12:04:16 +0900 Subject: [PATCH] fix test --- packages/backend/src/core/entities/UserEntityService.ts | 2 +- packages/backend/test/e2e/users.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/backend/src/core/entities/UserEntityService.ts b/packages/backend/src/core/entities/UserEntityService.ts index 4e2f0317dd..a7f62c05f7 100644 --- a/packages/backend/src/core/entities/UserEntityService.ts +++ b/packages/backend/src/core/entities/UserEntityService.ts @@ -412,7 +412,7 @@ export class UserEntityService implements OnModuleInit { userId: meId, targetUserId: user.id, }).then(row => row?.memo ?? null), - moderationNote: iAmModerator ? (profile!.moderationNote ?? '') : null, + moderationNote: iAmModerator ? (profile!.moderationNote ?? '') : undefined, } : {}), ...(opts.detail && isMe ? { diff --git a/packages/backend/test/e2e/users.ts b/packages/backend/test/e2e/users.ts index 917b9fbc94..c1a57f102f 100644 --- a/packages/backend/test/e2e/users.ts +++ b/packages/backend/test/e2e/users.ts @@ -112,7 +112,6 @@ describe('ユーザー', () => { securityKeys: user.securityKeys, roles: user.roles, memo: user.memo, - moderationNote: user.moderationNote, }); };