summary refs log tree commit diff
path: root/dist/models/Event.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/Event.js
parent:bug: fix database (diff)
downloadserver-57746da87206f31c8612b975df37305fb2a5e0b7.tar.xz
:bug: fix database
Diffstat (limited to 'dist/models/Event.js')
-rw-r--r--dist/models/Event.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/dist/models/Event.js b/dist/models/Event.js
index 0f4d0d8d..71acc973 100644
--- a/dist/models/Event.js
+++ b/dist/models/Event.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.EventModel = exports.EventSchema = void 0;
 const mongoose_1 = require("mongoose");
+const Database_1 = __importDefault(require("../util/Database"));
 exports.EventSchema = new mongoose_1.Schema({
     guild_id: mongoose_1.Types.Long,
     user_id: mongoose_1.Types.Long,
@@ -10,5 +14,6 @@ exports.EventSchema = new mongoose_1.Schema({
     event: { type: String, required: true },
     data: Object,
 });
-exports.EventModel = mongoose_1.model("Event", exports.EventSchema, "events");
+// @ts-ignore
+exports.EventModel = Database_1.default.model("Event", exports.EventSchema, "events");
 //# sourceMappingURL=Event.js.map
\ No newline at end of file