diff options
Diffstat (limited to 'dist/models/Event.js')
-rw-r--r-- | dist/models/Event.js | 7 |
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 |