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

Function acceptReports

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

Source from the content-addressed store, hash-verified

55}
56
57export 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
68export async function rejectReports(
69 req: MonkeyRequest<undefined, RejectReportsRequest>,

Callers

nothing calls this directly

Calls 1

handleReportsFunction · 0.85

Tested by

no test coverage detected