Skip to content

Commit

Permalink
feat: add trial flag to licenses.info endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-lehnen-rc committed Oct 17, 2023
1 parent ff2263a commit 75e4640
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ee/packages/license/src/definition/LicenseInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export type LicenseInfo = {
activeModules: LicenseModule[];
limits: Record<LicenseLimitKind, { value?: number; max: number }>;
tags: ILicenseTag[];
trial: boolean;
};
1 change: 1 addition & 0 deletions ee/packages/license/src/license.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
}
}

0 comments on commit 75e4640

Please sign in to comment.