From 9ab8fc8e6e454bef6b99122709084484f5d01e1c Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Wed, 18 Aug 2021 11:47:28 +0200 Subject: :bug: fix findOneAndUpdate --- api/src/Server.ts | 3 --- 1 file changed, 3 deletions(-) (limited to 'api/src/Server.ts') 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 { -- cgit 1.5.1