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

Function createProblem

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

Source from the content-addressed store, hash-verified

92}
93
94export async function createProblem(data: Omit<Problem, "id">) {
95 try {
96 const problem = await db.problem.create({
97 data,
98 });
99 return problem;
100 } catch (e) {
101 return null;
102 }
103}
104
105export async function createTrackProblems(data: TrackProblems) {
106 try {

Callers 1

handleCreateProblemFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected