( req: MonkeyRequest<undefined, AcceptReportsRequest>, )
| 55 | } |
| 56 | |
| 57 | export async function acceptReports( |
| 58 | req: MonkeyRequest<undefined, AcceptReportsRequest>, |
| 59 | ): Promise<MonkeyResponse> { |
| 60 | await handleReports( |
| 61 | req.body.reports.map((it) => ({ ...it })), |
| 62 | true, |
| 63 | req.ctx.configuration.users.inbox, |
| 64 | ); |
| 65 | return new MonkeyResponse("Reports removed and users notified.", null); |
| 66 | } |
| 67 | |
| 68 | export async function rejectReports( |
| 69 | req: MonkeyRequest<undefined, RejectReportsRequest>, |
nothing calls this directly
no test coverage detected