summary refs log tree commit diff
path: root/dist/models/Guild.js
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-16 21:16:56 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-16 21:16:56 +0100
commit57746da87206f31c8612b975df37305fb2a5e0b7 (patch)
treeb3f1774d3e4921571e95a40035875ad4b01da145 /dist/models/Guild.js
parent:bug: fix database (diff)
downloadserver-57746da87206f31c8612b975df37305fb2a5e0b7.tar.xz
:bug: fix database
Diffstat (limited to 'dist/models/Guild.js')
-rw-r--r--dist/models/Guild.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/dist/models/Guild.js b/dist/models/Guild.js
index 63969ab7..4996d06a 100644
--- a/dist/models/Guild.js
+++ b/dist/models/Guild.js
@@ -1,7 +1,11 @@
 "use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+    return (mod && mod.__esModule) ? mod : { "default": mod };
+};
 Object.defineProperty(exports, "__esModule", { value: true });
 exports.GuildModel = exports.GuildSchema = void 0;
 const mongoose_1 = require("mongoose");
+const Database_1 = __importDefault(require("../util/Database"));
 exports.GuildSchema = new mongoose_1.Schema({
     afk_channel_id: mongoose_1.Types.Long,
     afk_timeout: Number,
@@ -40,5 +44,6 @@ exports.GuildSchema = new mongoose_1.Schema({
     widget_channel_id: mongoose_1.Types.Long,
     widget_enabled: Boolean,
 });
-exports.GuildModel = mongoose_1.model("Guild", exports.GuildSchema, "guilds");
+// @ts-ignore
+exports.GuildModel = Database_1.default.model("Guild", exports.GuildSchema, "guilds");
 //# sourceMappingURL=Guild.js.map
\ No newline at end of file