From 79c4fd55fc210929ba550f55c1babdc88c0859c2 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Tue, 6 Apr 2021 17:06:00 +0200 Subject: :bug: fix User Model guilds --- src/util/Database.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util/Database.ts') diff --git a/src/util/Database.ts b/src/util/Database.ts index f5269675..fee3cc31 100644 --- a/src/util/Database.ts +++ b/src/util/Database.ts @@ -4,6 +4,8 @@ import { ChangeStream, ChangeEvent, Long } from "mongodb"; import EventEmitter from "events"; const uri = process.env.MONGO_URL || "mongodb://localhost:27017/fosscord?readPreference=secondaryPreferred"; +console.log(`[DB] connect: ${uri}`); + const connection = mongoose.createConnection(uri, { autoIndex: true }); export default connection; -- cgit 1.5.1