mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Fix: Signup not redirecting to backup PDF page due to error
This commit is contained in:
@@ -99,27 +99,31 @@ const initProjectHelper = async ({
|
|||||||
env: "dev"
|
env: "dev"
|
||||||
});
|
});
|
||||||
|
|
||||||
secrets?.forEach((secret) => {
|
try {
|
||||||
createSecret({
|
secrets?.forEach((secret) => {
|
||||||
workspaceId: project.id,
|
createSecret({
|
||||||
environment: secret.environment,
|
workspaceId: project.id,
|
||||||
type: secret.type,
|
environment: secret.environment,
|
||||||
secretKey: secret.secretName,
|
type: secret.type,
|
||||||
secretKeyCiphertext: secret.secretKeyCiphertext,
|
secretKey: secret.secretName,
|
||||||
secretKeyIV: secret.secretKeyIV,
|
secretKeyCiphertext: secret.secretKeyCiphertext,
|
||||||
secretKeyTag: secret.secretKeyTag,
|
secretKeyIV: secret.secretKeyIV,
|
||||||
secretValueCiphertext: secret.secretValueCiphertext,
|
secretKeyTag: secret.secretKeyTag,
|
||||||
secretValueIV: secret.secretValueIV,
|
secretValueCiphertext: secret.secretValueCiphertext,
|
||||||
secretValueTag: secret.secretValueTag,
|
secretValueIV: secret.secretValueIV,
|
||||||
secretCommentCiphertext: secret.secretCommentCiphertext,
|
secretValueTag: secret.secretValueTag,
|
||||||
secretCommentIV: secret.secretCommentIV,
|
secretCommentCiphertext: secret.secretCommentCiphertext,
|
||||||
secretCommentTag: secret.secretCommentTag,
|
secretCommentIV: secret.secretCommentIV,
|
||||||
secretPath: "/",
|
secretCommentTag: secret.secretCommentTag,
|
||||||
metadata: {
|
secretPath: "/",
|
||||||
source: "signup"
|
metadata: {
|
||||||
}
|
source: "signup"
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
} catch (err) {
|
||||||
|
console.error("Failed to upload secrets", err);
|
||||||
|
}
|
||||||
|
|
||||||
return project;
|
return project;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user