summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorYour Name <aryan8931080555@gmail.com>2021-04-26 03:40:20 +0530
committerYour Name <aryan8931080555@gmail.com>2021-04-26 03:40:20 +0530
commitaeecd50b77f7ad26f4f24e1f38d18ef09f875ddf (patch)
tree9f2883ce00b27e5ee431529f6d8a0ce4965f17a8 /src/Server.ts
parentMerge branch 'master' of https://github.com/fosscord/fosscord-api (diff)
downloadserver-aeecd50b77f7ad26f4f24e1f38d18ef09f875ddf.tar.xz
Channel Delete + Update Route
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Server.ts b/src/Server.ts

index c7c52c1f..c7f36233 100644 --- a/src/Server.ts +++ b/src/Server.ts
@@ -12,8 +12,13 @@ import { ErrorHandler } from "./middlewares/ErrorHandler"; import { BodyParser } from "./middlewares/BodyParser"; import { Router } from "express"; import fetch from "node-fetch"; +import mongoose from "mongoose"; -export interface FosscordServerOptions extends ServerOptions {} +// 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 { namespace Express {