fix: getPersonCount (#2773)

This commit is contained in:
Anshuman Pandey
2024-06-14 20:15:08 +05:30
committed by GitHub
parent d33304e3ad
commit f3906cab55

View File

@@ -339,23 +339,21 @@ export const getMonthlyActiveOrganizationPeopleCount = (organizationId: string):
AND: [
{ environmentId: { in: environmentIds } },
{
OR: [
{
actions: {
some: {
createdAt: { gte: organization.billing.periodStart },
},
},
actions: {
some: {
createdAt: { gte: organization.billing.periodStart },
},
{
responses: {
some: {
createdAt: { gte: organization.billing.periodStart },
},
},
},
],
},
},
// TODO: @pandeymangg - figure out how to count people based on responses effectively
// {
// responses: {
// some: {
// createdAt: { gte: organization.billing.periodStart },
// },
// },
// },
],
},
});