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

3
.gitignore vendored
View file

@ -61,4 +61,5 @@ typings/
.next
# deta-space internal files
.space
.space
Spacefile

2
app.js
View file

@ -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() {