We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52328fe commit 7942e72Copy full SHA for 7942e72
prisma/seed.ts
@@ -20,7 +20,7 @@ import {
20
import PQueue from 'p-queue';
21
import { generateLuciaPasswordHash } from 'lucia/utils';
22
23
-import type { TaskGrade } from '../src/lib/types/task';
+import { getTaskGrade } from '../src/lib/types/task';
24
25
import { classifyContest } from '../src/lib/utils/contest';
26
@@ -168,7 +168,7 @@ async function addTask(
168
task_table_index: task.problem_index,
169
task_id: task.id,
170
title: task.title,
171
- grade: task.grade as TaskGrade,
+ grade: getTaskGrade(task.grade as string),
172
});
173
}
174
0 commit comments