mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Clean-up.
This commit is contained in:
parent
9aa3946ed4
commit
e0144398e2
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user