summary refs log tree commit diff
path: root/src/models/Channel.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-16 21:16:56 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-16 21:16:56 +0100
commit57746da87206f31c8612b975df37305fb2a5e0b7 (patch)
treeb3f1774d3e4921571e95a40035875ad4b01da145 /src/models/Channel.ts
parent:bug: fix database (diff)
downloadserver-57746da87206f31c8612b975df37305fb2a5e0b7.tar.xz
:bug: fix database
Diffstat (limited to 'src/models/Channel.ts')
-rw-r--r--src/models/Channel.ts4
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;