Reupdate Dependencies

This commit is contained in:
Nicholas264 2022-01-22 14:57:06 -08:00
parent 92ee9ae4b1
commit 03ef5c0b6d
3 changed files with 5 additions and 5 deletions

6
package-lock.json generated
View file

@ -1315,9 +1315,9 @@
"integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw=="
},
"@types/node": {
"version": "14.18.9",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.9.tgz",
"integrity": "sha512-j11XSuRuAlft6vLDEX4RvhqC0KxNxx6QIyMXNb0vHHSNPXTPeiy3algESWmOOIzEtiEL0qiowPU3ewW9hHVa7Q=="
"version": "16.11.7",
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.7.tgz",
"integrity": "sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw=="
},
"@types/prop-types": {
"version": "15.7.4",

View file

@ -22,7 +22,7 @@
"license": "ISC",
"dependencies": {
"@types/express": "^4.17.13",
"@types/node": "^14.17.32",
"@types/node": "^16.11.7",
"@types/react-dom": "^16.9.14",
"@types/ws": "^7.4.7",
"express": "^4.17.1",

View file

@ -50,7 +50,7 @@ export default class UserDatabase {
* @param url the mongodb database url to connect to
*/
constructor(url: string) {
mongoose.connect(url, {useNewUrlParser: true, useUnifiedTopology: true, useFindAndModify: false});
mongoose.connect(url);
mongoose.set("returnOriginal", false);
}