fixed event participant

This commit is contained in:
PxlLoewe
2025-03-07 15:43:49 -07:00
parent 6fc20a66ef
commit 77b266e0bf
3 changed files with 21 additions and 17 deletions

View File

@@ -5,13 +5,16 @@ export const handleParticipantFinished = async (
participant: Participant,
user: User,
) => {
const discordID = prisma.discordAccount.findFirst({
const discordID = await prisma.discordAccount.findFirst({
where: {
userId: user.id,
},
});
prisma.user.update({
//TODO: Send Discord Message
//TODO: Send Email
await prisma.user.update({
where: {
id: user.id,
},
@@ -23,7 +26,7 @@ export const handleParticipantFinished = async (
},
});
prisma.participant.update({
await prisma.participant.update({
where: {
id: participant.id,
},