This commit is contained in:
2025-11-04 19:32:58 +03:00
parent 71f3f353ab
commit 69eddf47db
2 changed files with 9 additions and 4 deletions

View File

@@ -117,6 +117,9 @@ const waitForDatabaseConnection = async () => {
const verifyAuth = async () => {
try {
if (!mongoose.connection.db) {
return false;
}
await mongoose.connection.db.admin().command({ listDatabases: 1 });
return true;
} catch (error) {