🐛 fix database

This commit is contained in:
Flam3rboy
2021-02-16 21:16:56 +01:00
parent 7e25f67878
commit 57746da872
33 changed files with 109 additions and 34 deletions
+3 -1
View File
@@ -1,4 +1,5 @@
import { Schema, model, Types, Document } from "mongoose";
import db from "../util/Database";
export interface Invite extends Document {
code: string;
@@ -73,4 +74,5 @@ export const InviteSchema = new Schema({
target_user_type: Number,
});
export const InviteModel = model<Invite>("Invite", InviteSchema, "invites");
// @ts-ignore
export const InviteModel = db.model<Invite>("Invite", InviteSchema, "invites");