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

Function getResultById

backend/src/api/controllers/result.ts:138–146  ·  view source on GitHub ↗
(
  req: MonkeyRequest<undefined, undefined, GetResultByIdPath>,
)

Source from the content-addressed store, hash-verified

136}
137
138export async function getResultById(
139 req: MonkeyRequest<undefined, undefined, GetResultByIdPath>,
140): Promise<GetResultByIdResponse> {
141 const { uid } = req.ctx.decodedToken;
142 const { resultId } = req.params;
143
144 const result = await ResultDAL.getResult(uid, resultId);
145 return new MonkeyResponse("Result retrieved", replaceObjectId(result));
146}
147
148export async function getLastResult(
149 req: MonkeyRequest,

Callers

nothing calls this directly

Calls 1

replaceObjectIdFunction · 0.90

Tested by

no test coverage detected