chore: use luxon for dates

This commit is contained in:
Ephraim Atta-Duncan
2024-06-25 15:10:58 +00:00
parent db827b749d
commit 7e065764ec

View File

@ -25,7 +25,7 @@ export const getUserWithAtLeastOneDocumentPerMonth = async () => {
Document: {
some: {
createdAt: {
gte: new Date(new Date().setMonth(new Date().getMonth() - 1)),
gte: DateTime.now().minus({ months: 1 }).toJSDate(),
},
},
},
@ -42,7 +42,7 @@ export const getUserWithAtLeastOneDocumentSignedPerMonth = async () => {
equals: DocumentStatus.COMPLETED,
},
completedAt: {
gte: new Date(new Date().setMonth(new Date().getMonth() - 1)),
gte: DateTime.now().minus({ months: 1 }).toJSDate(),
},
},
},