From 0e8356e9b1acd95be5b94f0e55bba9d749a36d12 Mon Sep 17 00:00:00 2001 From: afeuerstein <32029275+afeuerstein@users.noreply.github.com> Date: Tue, 6 Apr 2021 21:32:44 +0200 Subject: remove compiled typescript code from repo --- dist/models/Member.js | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 dist/models/Member.js (limited to 'dist/models/Member.js') diff --git a/dist/models/Member.js b/dist/models/Member.js deleted file mode 100644 index c7717dd2..00000000 --- a/dist/models/Member.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MemberModel = exports.MemberSchema = void 0; -const User_1 = require("./User"); -const mongoose_1 = require("mongoose"); -const Database_1 = __importDefault(require("../util/Database")); -const MuteConfig = { - end_time: Number, - selected_time_window: Number, -}; -exports.MemberSchema = new mongoose_1.Schema({ - id: { type: String, required: true }, - guild_id: String, - nick: String, - roles: [String], - joined_at: Date, - premium_since: Number, - deaf: Boolean, - mute: Boolean, - pending: Boolean, - settings: { - channel_overrides: [ - { - channel_id: String, - message_notifications: Number, - mute_config: MuteConfig, - muted: Boolean, - }, - ], - message_notifications: Number, - mobile_push: Boolean, - mute_config: MuteConfig, - muted: Boolean, - suppress_everyone: Boolean, - suppress_roles: Boolean, - version: Number, - }, -}); -exports.MemberSchema.virtual("user", { - ref: User_1.UserModel, - localField: "id", - foreignField: "id", - justOne: true, -}); -// @ts-ignore -exports.MemberModel = Database_1.default.model("Member", exports.MemberSchema, "members"); -//# sourceMappingURL=Member.js.map \ No newline at end of file -- cgit 1.5.1