Inventory Infrastructure and Example for Suits #10

Merged
OrdisPrime merged 16 commits from inventory_basic into main 2023-06-03 18:06:22 -07:00
Showing only changes of commit b78f059421 - Show all commits

View File

@ -5,9 +5,9 @@ dotenv.config();
const url = process.env.MONGODB_URL;
if (!url) throw new Error("MONGODB_URL not found");
console.log("connecting to MongoDB URL:", url);
if (url === undefined) {
throw new Error("MONGODB_URL not found. Make sure you have a .env file in the root of the project!");
}
const connectDatabase = async () => {
try {