mirror of
https://github.com/documenso/documenso.git
synced 2025-11-19 11:12:06 +10:00
feat: add mau card
This commit is contained in:
@ -50,6 +50,16 @@ export const getUserWithAtLeastOneDocumentSignedPerMonth = async () => {
|
||||
});
|
||||
};
|
||||
|
||||
export const getUsersWithLastSignedInCount = async () => {
|
||||
return await prisma.user.count({
|
||||
where: {
|
||||
lastSignedIn: {
|
||||
gte: DateTime.now().minus({ months: 1 }).toJSDate(),
|
||||
},
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export type GetUserWithDocumentMonthlyGrowth = Array<{
|
||||
month: string;
|
||||
count: number;
|
||||
|
||||
Reference in New Issue
Block a user