mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 00:27:30 +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;
|
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." });
|
throw new BadRequestError({ message: "Invalid file format. Nonce or data missing." });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user