🐛 fix findOneAndUpdate

This commit is contained in:
Flam3rboy
2021-08-18 11:47:28 +02:00
parent 5e12d799e3
commit 4105df8dcb
17 changed files with 39 additions and 38 deletions
-3
View File
@@ -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 {