mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix: Prevent invocations of 'GET /rest/license' from returning an error when ephemeral licenses are used (#6154)
* fix: Prevent error when invoking with an ephemeral license * add tests
This commit is contained in:
committed by
GitHub
parent
8862e1e7df
commit
a3d26eff79
@@ -168,8 +168,7 @@ export class License {
|
||||
}
|
||||
|
||||
return entitlements.find(
|
||||
(entitlement) =>
|
||||
(entitlement.productMetadata.terms as unknown as { isMainPlan: boolean }).isMainPlan,
|
||||
(entitlement) => (entitlement.productMetadata?.terms as { isMainPlan?: boolean })?.isMainPlan,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user