mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 15:27:27 +00:00
Merge pull request #4669 from Infisical/fix/licenseIdentityCount
Remove unnecessary status check on identity count query
This commit is contained in:
@@ -44,7 +44,7 @@ export const licenseDALFactory = (db: TDbClient) => {
|
|||||||
|
|
||||||
// count org identities
|
// count org identities
|
||||||
const identityDoc = await (tx || db.replicaNode())(TableName.Membership)
|
const identityDoc = await (tx || db.replicaNode())(TableName.Membership)
|
||||||
.where({ status: OrgMembershipStatus.Accepted, scope: AccessScope.Organization })
|
.where({ scope: AccessScope.Organization })
|
||||||
.whereNotNull(`${TableName.Membership}.actorIdentityId`)
|
.whereNotNull(`${TableName.Membership}.actorIdentityId`)
|
||||||
.where((bd) => {
|
.where((bd) => {
|
||||||
if (orgId) {
|
if (orgId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user