Skip to content

Commit 50f7fbd

Browse files
entitlements naming nit
1 parent 409b881 commit 50f7fbd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/shared/src/entitlements.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const eeLicenseKeyPayloadSchema = z.object({
2121
type LicenseKeyPayload = z.infer<typeof eeLicenseKeyPayloadSchema>;
2222

2323
// eslint-disable-next-line @typescript-eslint/no-unused-vars
24-
const entitlements = [
24+
const ALL_ENTITLEMENTS = [
2525
"search-contexts",
2626
"anonymous-access",
2727
"sso",
@@ -34,7 +34,7 @@ const entitlements = [
3434
"org-management",
3535
"oauth",
3636
] as const;
37-
export type Entitlement = (typeof entitlements)[number];
37+
export type Entitlement = (typeof ALL_ENTITLEMENTS)[number];
3838

3939
const ACTIVE_LICENSE_STATUSES = ['active', 'trialing', 'past_due'] as const;
4040

@@ -93,7 +93,7 @@ export const getEntitlements = (license: License | null): Entitlement[] => {
9393
process.exit(1);
9494
}
9595

96-
return entitlements as unknown as Entitlement[];
96+
return ALL_ENTITLEMENTS as unknown as Entitlement[];
9797
}
9898
else if (license && isLicenseActive(license)) {
9999
return license.entitlements as unknown as Entitlement[];

0 commit comments

Comments
 (0)