mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 17:27:16 +00:00
Merge pull request #2571 from Infisical/daniel/envkey-import-bug
fix: handle undefined variable values
This commit is contained in:
@@ -187,7 +187,7 @@ export const importDataIntoInfisicalFn = async ({
|
|||||||
secretPath: "/",
|
secretPath: "/",
|
||||||
secretName: secret.name,
|
secretName: secret.name,
|
||||||
type: SecretType.Shared,
|
type: SecretType.Shared,
|
||||||
secretValue: secret.value
|
secretValue: secret.value || ""
|
||||||
});
|
});
|
||||||
if (!newSecret) {
|
if (!newSecret) {
|
||||||
throw new BadRequestError({ message: `Failed to import secret: [name:${secret.name}] [id:${id}]` });
|
throw new BadRequestError({ message: `Failed to import secret: [name:${secret.name}] [id:${id}]` });
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export type InfisicalImportData = {
|
|||||||
name: string;
|
name: string;
|
||||||
id: string;
|
id: string;
|
||||||
environmentId: string;
|
environmentId: string;
|
||||||
value: string;
|
value?: string;
|
||||||
}
|
}
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user