mirror of
https://github.com/Infisical/infisical.git
synced 2025-03-29 22:02:57 +00:00
Merge pull request #2571 from Infisical/daniel/envkey-import-bug
fix: handle undefined variable values
This commit is contained in:
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;
|
||||
}
|
||||
>;
|
||||
};
|
||||
|
Reference in New Issue
Block a user