mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-02 21:25:45 +00:00
Fix identity count used by the license server, removed the status filter as identities accept memberships by default
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