Skip to content

Commit

Permalink
fix: default since to 7 days ago fr this time
Browse files Browse the repository at this point in the history
  • Loading branch information
joonatanaatos committed Nov 21, 2024
1 parent 3b05643 commit f0177db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/ilmomasiina-backend/src/routes/events/getEventsList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ export const eventsListForUserCached = createCache({
};
} else {
filters[Op.or as any] = {
// closed less than 6 months ago
// closed less than 7 days ago
registrationEndDate: {
[Op.gt]: moment().subtract(6, "months").toDate(),
[Op.gt]: moment().subtract(7, "days").toDate(),
},
// or happened less than 6 months ago
// or happened less than 7 days ago
date: {
[Op.gt]: moment().subtract(6, "months").toDate(),
[Op.gt]: moment().subtract(7, "days").toDate(),
},
endDate: {
[Op.gt]: moment().subtract(6, "months").toDate(),
[Op.gt]: moment().subtract(7, "days").toDate(),
},
};
}
Expand Down

0 comments on commit f0177db

Please sign in to comment.