fix: wrong count on user

This commit is contained in:
Ephraim Atta-Duncan
2024-09-21 08:19:24 +00:00
parent f9935adb57
commit 492350612e
2 changed files with 14 additions and 0 deletions

View File

@ -155,6 +155,7 @@ const getCounts = async ({ user, createdAt }: GetCountsOption) => {
OR: [
{
userId: user.id,
teamId: null,
deletedAt: {
gte: DateTime.now().minus({ days: 30 }).startOf('day').toJSDate(),
},