diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-18 11:47:28 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-18 11:47:28 +0200 |
commit | 4105df8dcb825dd3d0ca048ca2bb09f9ada3d390 (patch) | |
tree | dff83a75ad8cb2fef29aac520005bf2c2accf9f2 /api/src/Server.ts | |
parent | fix #199 (diff) | |
download | server-4105df8dcb825dd3d0ca048ca2bb09f9ada3d390.tar.xz |
:bug: fix findOneAndUpdate
Diffstat (limited to 'api/src/Server.ts')
-rw-r--r-- | api/src/Server.ts | 3 |
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 { |