(id: string)
| 400 | } |
| 401 | |
| 402 | export async function deleteMCQ(id: string) { |
| 403 | try { |
| 404 | const mcq = await db.mCQQuestion.delete({ |
| 405 | where: { |
| 406 | id: id, |
| 407 | }, |
| 408 | }); |
| 409 | return mcq; |
| 410 | } catch (e) { |
| 411 | return null; |
| 412 | } |
| 413 | } |
| 414 | export async function getAllMCQsForProblem(problemId: string) { |
| 415 | const value = await cache.get("getAllMCQsForProblem", [problemId.toString()]); |
| 416 | if (value) { |
no outgoing calls
no test coverage detected