(data: Omit<Problem, "id">)
| 92 | } |
| 93 | |
| 94 | export 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 | |
| 105 | export async function createTrackProblems(data: TrackProblems) { |
| 106 | try { |
no outgoing calls
no test coverage detected