Skip to content

Commit

Permalink
fix(runVoteReminder): findMany filter
Browse files Browse the repository at this point in the history
  • Loading branch information
GodderE2D committed Dec 29, 2023
1 parent 6d0561f commit fcfede3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions/runVoteReminder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export async function runVoteReminder() {
const votes = await prisma.vote.findMany({
where: {
AND: [
{ createdAt: { gte: new Date(Date.now() - 43_260_000) } },
{ createdAt: { lte: new Date(Date.now() - 43_320_000) } },
{ createdAt: { gt: new Date(Date.now() - 43_260_000) } },
{ createdAt: { lte: new Date(Date.now() - 43_200_000) } },
],
},
});
Expand Down

0 comments on commit fcfede3

Please sign in to comment.