Fix identity count used by the license server, removed the status filter as identities accept memberships by default

This commit is contained in:
Carlos Monastyrski
2025-10-13 21:11:44 -03:00
parent 54697e1524
commit 56e04d8cf0

View File

@@ -44,7 +44,7 @@ export const licenseDALFactory = (db: TDbClient) => {
// count org identities
const identityDoc = await (tx || db.replicaNode())(TableName.Membership)
.where({ status: OrgMembershipStatus.Accepted, scope: AccessScope.Organization })
.where({ scope: AccessScope.Organization })
.whereNotNull(`${TableName.Membership}.actorIdentityId`)
.where((bd) => {
if (orgId) {