Skip to content

Commit 7942e72

Browse files
committed
chore: Use helper (#2657)
1 parent 52328fe commit 7942e72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prisma/seed.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
import PQueue from 'p-queue';
2121
import { generateLuciaPasswordHash } from 'lucia/utils';
2222

23-
import type { TaskGrade } from '../src/lib/types/task';
23+
import { getTaskGrade } from '../src/lib/types/task';
2424

2525
import { classifyContest } from '../src/lib/utils/contest';
2626

@@ -168,7 +168,7 @@ async function addTask(
168168
task_table_index: task.problem_index,
169169
task_id: task.id,
170170
title: task.title,
171-
grade: task.grade as TaskGrade,
171+
grade: getTaskGrade(task.grade as string),
172172
});
173173
}
174174

0 commit comments

Comments
 (0)