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

Function getLastResult

backend/src/api/controllers/result.ts:148–154  ·  view source on GitHub ↗
(
  req: MonkeyRequest,
)

Source from the content-addressed store, hash-verified

146}
147
148export async function getLastResult(
149 req: MonkeyRequest,
150): Promise<GetLastResultResponse> {
151 const { uid } = req.ctx.decodedToken;
152 const result = await ResultDAL.getLastResult(uid);
153 return new MonkeyResponse("Result retrieved", replaceObjectId(result));
154}
155
156export async function deleteAll(req: MonkeyRequest): Promise<MonkeyResponse> {
157 const { uid } = req.ctx.decodedToken;

Callers

nothing calls this directly

Calls 1

replaceObjectIdFunction · 0.90

Tested by

no test coverage detected