summary refs log tree commit diff
path: root/dist/models/Role.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/Role.js
parent:bug: fix database (diff)
downloadserver-57746da87206f31c8612b975df37305fb2a5e0b7.tar.xz
:bug: fix database
Diffstat (limited to 'dist/models/Role.js')
-rw-r--r--dist/models/Role.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/dist/models/Role.js b/dist/models/Role.js

index 41b385fc..ed681849 100644 --- a/dist/models/Role.js +++ b/dist/models/Role.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.RoleModel = exports.RoleSchema = void 0; const mongoose_1 = require("mongoose"); +const Database_1 = __importDefault(require("../util/Database")); exports.RoleSchema = new mongoose_1.Schema({ id: mongoose_1.Types.Long, guild_id: mongoose_1.Types.Long, @@ -16,5 +20,6 @@ exports.RoleSchema = new mongoose_1.Schema({ bot_id: mongoose_1.Types.Long, }, }); -exports.RoleModel = mongoose_1.model("Role", exports.RoleSchema, "roles"); +// @ts-ignore +exports.RoleModel = Database_1.default.model("Role", exports.RoleSchema, "roles"); //# sourceMappingURL=Role.js.map \ No newline at end of file