diff --git a/src/user/user.service.ts b/src/user/user.service.ts index 53aa309..11092e8 100644 --- a/src/user/user.service.ts +++ b/src/user/user.service.ts @@ -274,7 +274,7 @@ export class UserService { }, select: { endDate: true, options: true }, }) - if (!poll || (poll.endDate && poll.endDate < new Date())) { + if (!poll) { throw new PollNotFoundException() } const vote = await this.databaseService.vote.findFirst({