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

Function getRating

backend/src/api/controllers/quote.ts:97–105  ·  view source on GitHub ↗
(
  req: MonkeyRequest<GetQuoteRatingQuery>,
)

Source from the content-addressed store, hash-verified

95}
96
97export async function getRating(
98 req: MonkeyRequest<GetQuoteRatingQuery>,
99): Promise<GetQuoteRatingResponse> {
100 const { quoteId, language } = req.query;
101
102 const data = await QuoteRatingsDAL.get(quoteId, language);
103
104 return new MonkeyResponse("Rating retrieved", replaceObjectId(data));
105}
106
107export async function submitRating(
108 req: MonkeyRequest<undefined, AddQuoteRatingRequest>,

Callers

nothing calls this directly

Calls 2

replaceObjectIdFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected