summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 23:25:11 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 23:25:11 +0200
commite6830735497f261df1b7e4c56ddb9c7578ef7106 (patch)
treeb4d69ea9692670e4338bf23db5fd0312b5cd6c17 /src/util
parentupdate mongoose version to get rid of circular dependency issue (diff)
downloadserver-e6830735497f261df1b7e4c56ddb9c7578ef7106.tar.xz
:arrow_up: update mongodb
Diffstat (limited to 'src/util')
-rw-r--r--src/util/Database.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/Database.ts b/src/util/Database.ts
index 6e774262..883c8dcd 100644
--- a/src/util/Database.ts
+++ b/src/util/Database.ts
@@ -6,7 +6,7 @@ const uri = process.env.MONGO_URL || "mongodb://localhost:27017/fosscord?readPre
 
 console.log(`[DB] connect: ${uri}`);
 
-const connection = mongoose.createConnection(uri, { autoIndex: true , useNewUrlParser: true, useUnifiedTopology: true });
+const connection = mongoose.createConnection(uri, { autoIndex: true, useNewUrlParser: true, useUnifiedTopology: true });
 
 export default <Connection>connection;
 
@@ -32,6 +32,7 @@ export class MongooseCache extends EventEmitter {
 	}
 
 	init = async () => {
+		// @ts-ignore
 		this.stream = this.collection.watch(this.pipeline, { fullDocument: "updateLookup" });
 
 		this.stream.on("change", this.change);