( req: MonkeyRequest<undefined, undefined, GetResultByIdPath>, )
| 136 | } |
| 137 | |
| 138 | export 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 | |
| 148 | export async function getLastResult( |
| 149 | req: MonkeyRequest, |
nothing calls this directly
no test coverage detected