mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Clean-up.
This commit is contained in:
parent
9aa3946ed4
commit
e0144398e2
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue