From 3c491984cab37ef0a6ba1e8c388826832b78f116 Mon Sep 17 00:00:00 2001 From: ak Date: Mon, 11 Sep 2023 15:22:05 -0700 Subject: [PATCH] updated database name and added Deta Space config --- .gitignore | 3 ++- app.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a9199ba..a11e956 100644 --- a/.gitignore +++ b/.gitignore @@ -61,4 +61,5 @@ typings/ .next # deta-space internal files -.space \ No newline at end of file +.space +Spacefile \ No newline at end of file diff --git a/app.js b/app.js index a283018..59c4775 100644 --- a/app.js +++ b/app.js @@ -8,7 +8,7 @@ require("dotenv").config(); const app = express(); // get db -const mongoDB = `mongodb+srv://${process.env.USER}:${process.env.PASS}@odin.eftl02o.mongodb.net/?retryWrites=true&w=majority`; +const mongoDB = `mongodb+srv://${process.env.USER}:${process.env.PASS}@odin.eftl02o.mongodb.net/inventoryapp?retryWrites=true&w=majority`; // or throw error main().catch((err) => console.log(err)); async function main() {