Skip to content

Commit

Permalink
fix: don't add expired mandates
Browse files Browse the repository at this point in the history
  • Loading branch information
Isak-Kallini committed Feb 19, 2025
1 parent 5175f40 commit 0565d8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/server/keycloak/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ async function updateMandate(prisma: PrismaClient) {
AND: [
{ startDate: { gt: prisma.mandate.fields.lastSynced } },
{ startDate: { lt: now } },
{ endDate: { gt: now } },
],
},
select: {
Expand Down

0 comments on commit 0565d8a

Please sign in to comment.