mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
chore: use luxon for dates
This commit is contained in:
@ -25,7 +25,7 @@ export const getUserWithAtLeastOneDocumentPerMonth = async () => {
|
|||||||
Document: {
|
Document: {
|
||||||
some: {
|
some: {
|
||||||
createdAt: {
|
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,
|
equals: DocumentStatus.COMPLETED,
|
||||||
},
|
},
|
||||||
completedAt: {
|
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