mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Add try-catch to syncLicenseKeyOnPremFeatures
This commit is contained in:
@@ -87,10 +87,14 @@ export const licenseServiceFactory = ({
|
||||
);
|
||||
|
||||
const syncLicenseKeyOnPremFeatures = async () => {
|
||||
const {
|
||||
data: { currentPlan }
|
||||
} = await licenseServerOnPremApi.request.get<{ currentPlan: TFeatureSet }>("/api/license/v1/plan");
|
||||
onPremFeatures = currentPlan;
|
||||
try {
|
||||
const {
|
||||
data: { currentPlan }
|
||||
} = await licenseServerOnPremApi.request.get<{ currentPlan: TFeatureSet }>("/api/license/v1/plan");
|
||||
onPremFeatures = currentPlan;
|
||||
} catch (error) {
|
||||
logger.error(error, "Failed to synchronize license key features");
|
||||
}
|
||||
};
|
||||
|
||||
const init = async () => {
|
||||
|
||||
Reference in New Issue
Block a user