From e0144398e2e67f907a8cc7bad4182071f409b07b Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Mon, 27 Jun 2022 23:08:58 -0700 Subject: [PATCH] Clean-up. --- scripts/check-db.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/check-db.js b/scripts/check-db.js index 7976c89b..6b4b0749 100644 --- a/scripts/check-db.js +++ b/scripts/check-db.js @@ -1,11 +1,10 @@ require('dotenv').config(); const { PrismaClient } = require('@prisma/client'); -const prisma = new PrismaClient(); const chalk = require('chalk'); const spawn = require('cross-spawn'); const { execSync } = require('child_process'); -let message = ''; +const prisma = new PrismaClient(); function success(msg) { console.log(chalk.greenBright(`✓ ${msg}`)); @@ -82,7 +81,6 @@ async function checkMigrations() { } finally { await prisma.$disconnect(); if (err) { - console.log(message); process.exit(1); } }