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

index 7be246d7..0c9a652a 100644 --- a/dist/models/Channel.js +++ b/dist/models/Channel.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.ChannelType = exports.ChannelPermissionOverwriteType = exports.ChannelModel = exports.ChannelSchema = void 0; const mongoose_1 = require("mongoose"); +const Database_1 = __importDefault(require("../util/Database")); exports.ChannelSchema = new mongoose_1.Schema({ id: mongoose_1.Types.Long, created_at: { type: mongoose_1.Schema.Types.Date, required: true }, @@ -26,7 +30,8 @@ exports.ChannelSchema = new mongoose_1.Schema({ }, ], }); -exports.ChannelModel = mongoose_1.model("Channel", exports.ChannelSchema, "channels"); +// @ts-ignore +exports.ChannelModel = Database_1.default.model("Channel", exports.ChannelSchema, "channels"); var ChannelPermissionOverwriteType; (function (ChannelPermissionOverwriteType) { ChannelPermissionOverwriteType[ChannelPermissionOverwriteType["role"] = 0] = "role";