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

Function updateProblem

apps/web/components/utils.tsx:80–92  ·  view source on GitHub ↗
(problemId: string, data: Problem)

Source from the content-addressed store, hash-verified

78}
79
80export async function updateProblem(problemId: string, data: Problem) {
81 try {
82 const problem = await db.problem.update({
83 where: {
84 id: problemId,
85 },
86 data,
87 });
88 return problem;
89 } catch (e) {
90 return null;
91 }
92}
93
94export async function createProblem(data: Omit<Problem, "id">) {
95 try {

Callers 1

handleEditFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected