mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 15:53:02 +10:00
chore: use luxon for dates
This commit is contained in:
@ -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(),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user