diff --git a/prisma/seed.js b/prisma/seed.js index e0a08879..9f7b098c 100644 --- a/prisma/seed.js +++ b/prisma/seed.js @@ -75,7 +75,7 @@ async function getCreateDevicesArgs() { port: port_number, software: device_type, softwareVersion: version, - mountParameters: JSON.stringify(JSON.parse(parsedTemplate(device))), + mountParameters: JSON.parse(parsedTemplate(device)), source: 'IMPORTED', }; }); @@ -95,7 +95,7 @@ async function importBlueprints() { { tenantId, name: 'ios xr_5.3.*_22', - template: SAMPLE_BLUEPRINT_TEMPLATE, + template: JSON.stringify(JSON.parse(SAMPLE_BLUEPRINT_TEMPLATE)), }, ], skipDuplicates: true, diff --git a/prisma/seed.ts b/prisma/seed.ts index 4175c2aa..523682b3 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -79,7 +79,7 @@ async function getCreateDevicesArgs(): Promise { port: port_number, software: device_type, softwareVersion: version, - mountParameters: JSON.stringify(JSON.parse(parsedTemplate(device))), + mountParameters: JSON.parse(parsedTemplate(device)), source: 'IMPORTED' as const, }; });