Skip to content

Commit

Permalink
update check-db
Browse files Browse the repository at this point in the history
  • Loading branch information
briancao committed Oct 3, 2022
1 parent 6de634f commit a2ce1d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/check-db.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
require('dotenv').config();
const { PrismaClient } = require('@prisma/client');
const chalk = require('chalk');
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit a2ce1d8

Please sign in to comment.