Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

update check-db

Brian Caoa2ce1d833dfb
diff --git a/scripts/check-db.js b/scripts/check-db.js
index 4de18a89f..d5cc2a64f 100644
--- a/scripts/check-db.js
+++ b/scripts/check-db.js
@@ -1,3 +1,4 @@
+/* eslint-disable no-console */
require('dotenv').config();
const { PrismaClient } = require('@prisma/client');
const chalk = require('chalk');
@@ -39,7 +40,7 @@ async function checkConnection() {
async function checkTables() {
try {
- await prisma.account.findFirst();
+ await prisma.$queryRaw`select * from account limit 1`;
success('Database tables found.');
} catch (e) {