diff options
Diffstat (limited to 'src/models/Channel.ts')
-rw-r--r-- | src/models/Channel.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/models/Channel.ts b/src/models/Channel.ts index 57e75f26..3ab571e7 100644 --- a/src/models/Channel.ts +++ b/src/models/Channel.ts @@ -1,4 +1,5 @@ import { Schema, model, Types, Document } from "mongoose"; +import db from "../util/Database"; export interface AnyChannel extends Channel, DMChannel, TextChannel, VoiceChannel {} @@ -31,7 +32,8 @@ export const ChannelSchema = new Schema({ ], }); -export const ChannelModel = model<ChannelDocument>("Channel", ChannelSchema, "channels"); +// @ts-ignore +export const ChannelModel = db.model<ChannelDocument>("Channel", ChannelSchema, "channels"); export interface Channel { id: bigint; |