Skip to content

Commit

Permalink
fix: memperbaiki function yang sudah berubah schemanya
Browse files Browse the repository at this point in the history
  • Loading branch information
reacto11mecha committed Oct 14, 2023
1 parent b61e0d9 commit a13cf5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/router/participant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const participantRouter = createTRPCRouter({

const checkThing = await Promise.all(
okToInsert.map(({ name }) =>
prisma.participant.findUnique({ where: { name } }),
prisma.participant.findFirst({ where: { name } }),
),
);

Expand Down

0 comments on commit a13cf5d

Please sign in to comment.