updated database name and added Deta Space config

This commit is contained in:
ak 2023-09-11 15:22:05 -07:00
parent 1006d28b71
commit 3c491984ca
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -62,3 +62,4 @@ typings/
# deta-space internal files # deta-space internal files
.space .space
Spacefile

2
app.js
View file

@ -8,7 +8,7 @@ require("dotenv").config();
const app = express(); const app = express();
// get db // 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 // or throw error
main().catch((err) => console.log(err)); main().catch((err) => console.log(err));
async function main() { async function main() {