Merge pull request #4669 from Infisical/fix/licenseIdentityCount

Remove unnecessary status check on identity count query
This commit is contained in:
carlosmonastyrski
2025-10-13 21:40:18 -03:00
committed by GitHub

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) {