matthewsong18 / csc337-final-project

1 stars 0 forks source link

refactor: fix app.js and update server.js #46

Closed matthewsong18 closed 19 hours ago

matthewsong18 commented 21 hours ago

useNewUrlParser and useUnifiedTopology is depreciated. It should look like the following code instead. However, this code should be inside server.js instead.

mongoose.connect("mongodb://localhost:27017/db")

_Originally posted by @matthewsong18 in https://github.com/matthewsong18/csc337-final-project/pull/41#discussion_r1870340848_

matthewsong18 commented 21 hours ago

https://github.com/matthewsong18/csc337-final-project/pull/41#discussion_r1870341447