feat: add trial flag to licenses.info endpoint (#30662)

pull/30683/head
Pierre Lehnen 3 years ago committed by GitHub
parent 083840662c
commit fff548fe8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ee/packages/license/src/definition/LicenseInfo.ts
  2. 1
      ee/packages/license/src/license.ts

@ -7,4 +7,5 @@ export type LicenseInfo = {
activeModules: LicenseModule[];
limits: Record<LicenseLimitKind, { value?: number; max: number }>;
tags: ILicenseTag[];
trial: boolean;
};

@ -332,6 +332,7 @@ export class LicenseManager extends Emitter<LicenseEvents> {
activeModules,
limits: limits as Record<LicenseLimitKind, { max: number; value: number }>,
tags: license?.information.tags || [],
trial: Boolean(license?.information.trial),
};
}
}

Loading…
Cancel
Save