fix auth
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user