1
0
mirror of https://github.com/Infisical/infisical.git synced 2025-03-29 22:02:57 +00:00

Merge pull request from Infisical/daniel/envkey-import-bug

fix: handle undefined variable values
This commit is contained in:
Daniel Hougaard
2024-10-10 21:23:08 +04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
backend/src/services/external-migration

@ -187,7 +187,7 @@ export const importDataIntoInfisicalFn = async ({
secretPath: "/",
secretName: secret.name,
type: SecretType.Shared,
secretValue: secret.value
secretValue: secret.value || ""
});
if (!newSecret) {
throw new BadRequestError({ message: `Failed to import secret: [name:${secret.name}] [id:${id}]` });

@ -18,7 +18,7 @@ export type InfisicalImportData = {
name: string;
id: string;
environmentId: string;
value: string;
value?: string;
}
>;
};