summary refs log tree commit diff
path: root/api/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-18 11:47:28 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-18 11:47:28 +0200
commit4105df8dcb825dd3d0ca048ca2bb09f9ada3d390 (patch)
treedff83a75ad8cb2fef29aac520005bf2c2accf9f2 /api/src/Server.ts
parentfix #199 (diff)
downloadserver-4105df8dcb825dd3d0ca048ca2bb09f9ada3d390.tar.xz
:bug: fix findOneAndUpdate
Diffstat (limited to 'api/src/Server.ts')
-rw-r--r--api/src/Server.ts3
1 files changed, 0 insertions, 3 deletions
diff --git a/api/src/Server.ts b/api/src/Server.ts
index 40e7c1c2..adaf7f2c 100644
--- a/api/src/Server.ts
+++ b/api/src/Server.ts
@@ -12,9 +12,6 @@ import { initRateLimits } from "./middlewares/RateLimit";
 import TestClient from "./middlewares/TestClient";
 import { initTranslation } from "./middlewares/Translation";
 
-// this will return the new updated document for findOneAndUpdate
-mongoose.set("returnOriginal", false); // https://mongoosejs.com/docs/api/model.html#model_Model.findOneAndUpdate
-
 export interface FosscordServerOptions extends ServerOptions {}
 
 declare global {