From 7705f7d02c96f09624ece6be85e96dda1cee24d6 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sat, 5 Oct 2024 12:18:08 +0900 Subject: [PATCH] lint --- packages/backend/src/core/AbuseReportService.ts | 2 +- packages/backend/src/core/WebhookTestService.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/core/AbuseReportService.ts b/packages/backend/src/core/AbuseReportService.ts index 53947778e451..cddfe5eb814c 100644 --- a/packages/backend/src/core/AbuseReportService.ts +++ b/packages/backend/src/core/AbuseReportService.ts @@ -152,7 +152,7 @@ export class AbuseReportService { public async update( reportId: MiAbuseUserReport['id'], params: { - moderationNote: MiAbuseUserReport['moderationNote']; + moderationNote?: MiAbuseUserReport['moderationNote']; }, moderator: MiUser, ) { diff --git a/packages/backend/src/core/WebhookTestService.ts b/packages/backend/src/core/WebhookTestService.ts index c2764f30e82f..dedeb2e20ad3 100644 --- a/packages/backend/src/core/WebhookTestService.ts +++ b/packages/backend/src/core/WebhookTestService.ts @@ -29,6 +29,8 @@ function generateAbuseReport(override?: Partial): MiAbuseUser comment: 'This is a dummy report for testing purposes.', targetUserHost: null, reporterHost: null, + resolvedAs: null, + moderationNote: 'foo', ...override, }; }