Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update external-migration-router.ts

Daniel Hougaardd8d784a0bc73
diff --git a/backend/src/server/routes/v3/external-migration-router.ts b/backend/src/server/routes/v3/external-migration-router.ts
index c88a7f9b23..865287157e 100644
--- a/backend/src/server/routes/v3/external-migration-router.ts
+++ b/backend/src/server/routes/v3/external-migration-router.ts
@@ -34,7 +34,7 @@ export const registerExternalMigrationRouter = async (server: FastifyZodProvider
const decryptionKey = (data.fields.decryptionKey as { value: string }).value;
- if (!parsedJsonFile.nonce || parsedJsonFile.data) {
+ if (!parsedJsonFile.nonce || !parsedJsonFile.data) {
throw new BadRequestError({ message: "Invalid file format. Nonce or data missing." });
}