FEAT: It makes db URI dynamic in models/connection

This commit is contained in:
Michel Pereira 2023-01-01 07:43:05 -03:00
parent ae9e0e821d
commit 95ad2a8588
2 changed files with 15 additions and 14416 deletions

View file

@ -7,7 +7,7 @@ const OPTIONS = {
useUnifiedTopology: true,
};
const MONGO_DB_URL = process.env.DB_URL;
const MONGO_DB_URL = process.env.DB_URL || "mongodb://localhost:27017/StoreManager";
let db = null;

14429
package-lock.json generated

File diff suppressed because it is too large Load diff