fixed event participant
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user