From ce3d97b3f6da36b777a9d4ae46f6260225c9a299 Mon Sep 17 00:00:00 2001 From: ninele7 Date: Thu, 19 Oct 2023 03:53:59 +0500 Subject: [PATCH] 1 --- src/scripts/migrate-and-start.ts | 6 +++--- src/scripts/print-database-url.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scripts/migrate-and-start.ts b/src/scripts/migrate-and-start.ts index 2770ab90d..e6f2a19ee 100644 --- a/src/scripts/migrate-and-start.ts +++ b/src/scripts/migrate-and-start.ts @@ -16,10 +16,10 @@ const client = new Prisma.PrismaClient(); const migrateFromSequelizeToPrisma = async () => { await execa('prisma', ['migrate', 'resolve', '--applied', '20220101155430_migrate_from_sequelize'], { - preferLocal: true, + preferLocal: true, env: { - DATABASE_URL: process.env.DATABASE_URL - } + DATABASE_URL: process.env.DATABASE_URL, + }, }); }; diff --git a/src/scripts/print-database-url.ts b/src/scripts/print-database-url.ts index 1fb962b94..fda2f6d65 100644 --- a/src/scripts/print-database-url.ts +++ b/src/scripts/print-database-url.ts @@ -1,4 +1,4 @@ import createDatabaseUrl from '../utils/create-database-url.js'; import {DATA_DIR} from '../services/config.js'; -console.log(createDatabaseUrl(DATA_DIR)) \ No newline at end of file +console.log(createDatabaseUrl(DATA_DIR));