Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seed script recompiled #348

Merged
merged 1 commit into from
Aug 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions prisma/seed.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const client_1 = require('@prisma/client');
const csv_parse_1 = require('csv-parse');
const fs_1 = require('fs');
const json_templates_1 = __importDefault(require('json-templates'));
const import_csv_helpers_1 = require('../helpers/import-csv.helpers');
const unwrap_1 = __importDefault(require('../helpers/unwrap'));
const import_csv_helpers_1 = require('../src/helpers/import-csv.helpers');
const utils_helpers_1 = require('../src/helpers/utils.helpers');
const DEFAULT_UNICONFIG_ZONE = 'localhost';
const { X_TENANT_ID } = process.env;
if (!X_TENANT_ID) {
Expand Down Expand Up @@ -70,7 +70,7 @@ async function getCreateDevicesArgs() {
return {
name: node_id,
tenantId,
uniconfigZoneId: (0, unwrap_1.default)(uniconfigZoneId).id,
uniconfigZoneId: (0, utils_helpers_1.unwrap)(uniconfigZoneId).id,
managementIp: ip_address,
port: port_number,
software: device_type,
Expand Down