From 57746da87206f31c8612b975df37305fb2a5e0b7 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Tue, 16 Feb 2021 21:16:56 +0100 Subject: :bug: fix database --- dist/models/Invite.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dist/models/Invite.js') diff --git a/dist/models/Invite.js b/dist/models/Invite.js index 8ae75fcc..4cd1a53c 100644 --- a/dist/models/Invite.js +++ b/dist/models/Invite.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.InviteModel = exports.InviteSchema = void 0; const mongoose_1 = require("mongoose"); +const Database_1 = __importDefault(require("../util/Database")); exports.InviteSchema = new mongoose_1.Schema({ code: String, temporary: Boolean, @@ -37,5 +41,6 @@ exports.InviteSchema = new mongoose_1.Schema({ }, target_user_type: Number, }); -exports.InviteModel = mongoose_1.model("Invite", exports.InviteSchema, "invites"); +// @ts-ignore +exports.InviteModel = Database_1.default.model("Invite", exports.InviteSchema, "invites"); //# sourceMappingURL=Invite.js.map \ No newline at end of file -- cgit 1.5.1