Skip to content
Snippets Groups Projects
Commit 6ad9a967 authored by syuilo's avatar syuilo
Browse files

fix test

parent 1ff23d7a
No related branches found
No related tags found
No related merge requests found
......@@ -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 ?? '') : null,
} : {}),
...(opts.detail && isMe ? {
......
......@@ -80,7 +80,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
isSilenced: isSilenced,
isSuspended: user.isSuspended,
lastActiveDate: user.lastActiveDate,
moderationNote: profile.moderationNote,
moderationNote: profile.moderationNote ?? '',
signins,
policies: await this.roleService.getUserPolicies(user.id),
roles: await this.roleEntityService.packMany(roles, me),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment