summary refs log tree commit diff
path: root/dist/models/Event.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dist/models/Event.js7
-rw-r--r--dist/models/Event.js.map2
2 files changed, 7 insertions, 2 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 diff --git a/dist/models/Event.js.map b/dist/models/Event.js.map
index 3ba71bbf..55c2bca6 100644 --- a/dist/models/Event.js.map +++ b/dist/models/Event.js.map
@@ -1 +1 @@ -{"version":3,"file":"Event.js","sourceRoot":"","sources":["../../src/models/Event.ts"],"names":[],"mappings":";;;AAYA,uCAA0D;AAa7C,QAAA,WAAW,GAAG,IAAI,iBAAM,CAAC;IACrC,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,OAAO,EAAE,gBAAK,CAAC,IAAI;IACnB,UAAU,EAAE,gBAAK,CAAC,IAAI;IACtB,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC5C,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvC,IAAI,EAAE,MAAM;CACZ,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,gBAAK,CAAgB,OAAO,EAAE,mBAAW,EAAE,QAAQ,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"Event.js","sourceRoot":"","sources":["../../src/models/Event.ts"],"names":[],"mappings":";;;;;;AAYA,uCAA0D;AAC1D,gEAAkC;AAarB,QAAA,WAAW,GAAG,IAAI,iBAAM,CAAC;IACrC,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,OAAO,EAAE,gBAAK,CAAC,IAAI;IACnB,UAAU,EAAE,gBAAK,CAAC,IAAI;IACtB,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC5C,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvC,IAAI,EAAE,MAAM;CACZ,CAAC,CAAC;AAEH,aAAa;AACA,QAAA,UAAU,GAAG,kBAAE,CAAC,KAAK,CAAgB,OAAO,EAAE,mBAAW,EAAE,QAAQ,CAAC,CAAC"} \ No newline at end of file