( req: MonkeyRequest<GetQuoteRatingQuery>, )
| 95 | } |
| 96 | |
| 97 | export 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 | |
| 107 | export async function submitRating( |
| 108 | req: MonkeyRequest<undefined, AddQuoteRatingRequest>, |
nothing calls this directly
no test coverage detected