Skip to content

Commit 20c4064

Browse files
committed
Fix lint issues
1 parent a65e506 commit 20c4064

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/lib/services/task-service.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import { and, eq } from "drizzle-orm";
12
import { type Session } from "next-auth";
23

34
import { db } from "~/server/db";
45
import { type Task, taskSolves } from "~/server/db/schema";
56

67
import { logger } from "../server/log";
78
import { generateFlag } from "../task/id";
8-
import { and, eq } from "drizzle-orm";
99

1010
type User = Session["user"];
1111
type UserId = User["id"];
@@ -184,7 +184,12 @@ export const handleFlagVerification = async (ctx: {
184184
.set({
185185
finishedAt,
186186
})
187-
.where(and(eq(taskSolves.taskId, taskSolve.taskId), eq(taskSolves.userId, taskSolve.userId)))
187+
.where(
188+
and(
189+
eq(taskSolves.taskId, taskSolve.taskId),
190+
eq(taskSolves.userId, taskSolve.userId),
191+
),
192+
)
188193
.execute()
189194
.then(() => {
190195
return {

0 commit comments

Comments
 (0)