diff options
Diffstat (limited to 'src/models/Message.ts')
-rw-r--r-- | src/models/Message.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/models/Message.ts b/src/models/Message.ts index 2f7323dc..6353c588 100644 --- a/src/models/Message.ts +++ b/src/models/Message.ts @@ -1,5 +1,6 @@ import { Schema, model, Types, Document } from "mongoose"; import { ChannelType } from "./Channel"; +import db from "../util/Database"; export interface Message extends Document { id: bigint; @@ -227,4 +228,5 @@ export const MessageSchema = new Schema({ }, }); -export const MessageModel = model<Message>("Message", MessageSchema, "messages"); +// @ts-ignore +export const MessageModel = db.model<Message>("Message", MessageSchema, "messages"); |