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

Function createMCQ

apps/web/components/utils.tsx:376–385  ·  view source on GitHub ↗
(data: Omit<MCQQuestion, "id">)

Source from the content-addressed store, hash-verified

374}
375
376export async function createMCQ(data: Omit<MCQQuestion, "id">) {
377 try {
378 const mcq = await db.mCQQuestion.create({
379 data,
380 });
381 return mcq;
382 } catch (e) {
383 return null;
384 }
385}
386
387export async function updateMCQ(id: string, data: MCQQuestion) {
388 try {

Callers 1

handleSubmitFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected