refactor(backend): SystemWebhookで送信されるペイロードの型を追加 (#14980)

This commit is contained in:
おさむのひと
2024-11-19 10:41:39 +09:00
committed by GitHub
parent c271534aba
commit 7b9c884a5d
5 changed files with 63 additions and 29 deletions

View File

@@ -154,9 +154,9 @@ export class AbuseReportNotificationService implements OnApplicationShutdown {
const convertedReports = abuseReports.map(it => {
return {
...it,
reporter: usersMap.get(it.reporterId),
targetUser: usersMap.get(it.targetUserId),
assignee: it.assigneeId ? usersMap.get(it.assigneeId) : null,
reporter: usersMap.get(it.reporterId) ?? null,
targetUser: usersMap.get(it.targetUserId) ?? null,
assignee: it.assigneeId ? (usersMap.get(it.assigneeId) ?? null) : null,
};
});