This commit is contained in:
Nikhil Nayak 2025-07-09 11:56:30 +05:30
parent 92fc680b60
commit d8e20f7316

View file

@ -18,6 +18,7 @@ function getDatabaseType(url = process.env.DATABASE_URL) {
const databaseType = getDatabaseType(); const databaseType = getDatabaseType();
if (!databaseType || !['mysql', 'postgresql'].includes(databaseType)) { if (!databaseType || !['mysql', 'postgresql'].includes(databaseType)) {
console.log(`---- DATABASE_TYPE -----> - ${databaseType}`);
throw new Error('Missing or invalid database'); throw new Error('Missing or invalid database');
} }