MCPcopy Create free account
hub / github.com/monkeytypegame/monkeytype / rejectReports

Function rejectReports

backend/src/api/controllers/admin.ts:68–77  ·  view source on GitHub ↗
(
  req: MonkeyRequest<undefined, RejectReportsRequest>,
)

Source from the content-addressed store, hash-verified

66}
67
68export async function rejectReports(
69 req: MonkeyRequest<undefined, RejectReportsRequest>,
70): Promise<MonkeyResponse> {
71 await handleReports(
72 req.body.reports.map((it) => ({ ...it })),
73 false,
74 req.ctx.configuration.users.inbox,
75 );
76 return new MonkeyResponse("Reports removed and users notified.", null);
77}
78
79export async function handleReports(
80 reports: { reportId: string; reason?: string }[],

Callers

nothing calls this directly

Calls 1

handleReportsFunction · 0.85

Tested by

no test coverage detected