updated database name and added Deta Space config
This commit is contained in:
parent
1006d28b71
commit
3c491984ca
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -62,3 +62,4 @@ typings/
|
||||||
|
|
||||||
# deta-space internal files
|
# deta-space internal files
|
||||||
.space
|
.space
|
||||||
|
Spacefile
|
||||||
2
app.js
2
app.js
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue