mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 13:27:22 +00:00
Update dynamic seat count on prem
This commit is contained in:
@@ -218,6 +218,8 @@ export const licenseServiceFactory = ({
|
|||||||
} else if (instanceType === InstanceType.EnterpriseOnPrem) {
|
} else if (instanceType === InstanceType.EnterpriseOnPrem) {
|
||||||
const usedSeats = await licenseDAL.countOfOrgMembers(null, tx);
|
const usedSeats = await licenseDAL.countOfOrgMembers(null, tx);
|
||||||
const usedIdentitySeats = await licenseDAL.countOrgUsersAndIdentities(null, tx);
|
const usedIdentitySeats = await licenseDAL.countOrgUsersAndIdentities(null, tx);
|
||||||
|
onPremFeatures.membersUsed = usedSeats;
|
||||||
|
onPremFeatures.identitiesUsed = usedIdentitySeats;
|
||||||
await licenseServerOnPremApi.request.patch(`/api/license/v1/license`, {
|
await licenseServerOnPremApi.request.patch(`/api/license/v1/license`, {
|
||||||
usedSeats,
|
usedSeats,
|
||||||
usedIdentitySeats
|
usedIdentitySeats
|
||||||
|
|||||||
@@ -30,9 +30,9 @@ export type TFeatureSet = {
|
|||||||
workspacesUsed: 0;
|
workspacesUsed: 0;
|
||||||
dynamicSecret: false;
|
dynamicSecret: false;
|
||||||
memberLimit: null;
|
memberLimit: null;
|
||||||
membersUsed: 0;
|
membersUsed: number;
|
||||||
identityLimit: null;
|
identityLimit: null;
|
||||||
identitiesUsed: 0;
|
identitiesUsed: number;
|
||||||
environmentLimit: null;
|
environmentLimit: null;
|
||||||
environmentsUsed: 0;
|
environmentsUsed: 0;
|
||||||
secretVersioning: true;
|
secretVersioning: true;
|
||||||
|
|||||||
Reference in New Issue
Block a user