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

Function updateMCQ

apps/web/components/utils.tsx:387–400  ·  view source on GitHub ↗
(id: string, data: MCQQuestion)

Source from the content-addressed store, hash-verified

385}
386
387export async function updateMCQ(id: string, data: MCQQuestion) {
388 try {
389 const mcq = await db.mCQQuestion.update({
390 where: {
391 id: id,
392 },
393 data,
394 });
395 return mcq;
396 } catch (e) {
397 console.log(e);
398 return null;
399 }
400}
401
402export async function deleteMCQ(id: string) {
403 try {

Callers 1

asyncUpdateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected