MCPcopy Create free account
hub / github.com/code100x/daily-code / deleteMCQ

Function deleteMCQ

apps/web/components/utils.tsx:402–413  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

400}
401
402export 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}
414export async function getAllMCQsForProblem(problemId: string) {
415 const value = await cache.get("getAllMCQsForProblem", [problemId.toString()]);
416 if (value) {

Callers 1

handleRemoveExistingMCQsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected