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

Function createQuizScore

apps/web/components/utils.tsx:432–437  ·  view source on GitHub ↗
(data: { userId: string; score: number; problemId: string })

Source from the content-addressed store, hash-verified

430}
431
432export async function createQuizScore(data: { userId: string; score: number; problemId: string }) {
433 const submission = await db.quizScore.create({
434 data,
435 });
436 return submission;
437}
438
439export async function getQuizScore({ userId, problemId }: { userId: string; problemId: string }) {
440 const value = await cache.get("getQuizScore", [userId.toString(), problemId.toString()]);

Callers 1

submitQuizFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected