mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Update external-migration-router.ts
This commit is contained in:
@@ -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." });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user