mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 13:27:46 +00:00
Add try-catch to syncLicenseKeyOnPremFeatures
This commit is contained in:
@@ -87,10 +87,14 @@ export const licenseServiceFactory = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const syncLicenseKeyOnPremFeatures = async () => {
|
const syncLicenseKeyOnPremFeatures = async () => {
|
||||||
const {
|
try {
|
||||||
data: { currentPlan }
|
const {
|
||||||
} = await licenseServerOnPremApi.request.get<{ currentPlan: TFeatureSet }>("/api/license/v1/plan");
|
data: { currentPlan }
|
||||||
onPremFeatures = 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 () => {
|
const init = async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user