🔥 Remove deprecated event model (#1775)

This commit is contained in:
Luke Vella 2025-06-14 12:39:02 +02:00 committed by GitHub
parent b1b76b4bec
commit 37b7ed5e19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 85 additions and 248 deletions

View file

@ -48,12 +48,6 @@ export async function getPolls({
image: true,
},
},
event: {
select: {
start: true,
duration: true,
},
},
participants: {
where: {
deleted: false,
@ -95,7 +89,6 @@ export async function getPolls({
email: participant.email ?? undefined,
image: participant.user?.image ?? undefined,
})),
event: poll.event ?? undefined,
};
}),
hasNextPage,