diff options
Diffstat (limited to '')
-rw-r--r-- | src/models/Guild.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/models/Guild.ts b/src/models/Guild.ts index a6ed6773..8eb7533f 100644 --- a/src/models/Guild.ts +++ b/src/models/Guild.ts @@ -1,4 +1,5 @@ import { Schema, model, Types, Document } from "mongoose"; +import db from "../util/Database"; export interface GuildDocument extends Document, Guild { id: bigint; @@ -86,4 +87,5 @@ export const GuildSchema = new Schema({ widget_enabled: Boolean, }); -export const GuildModel = model<GuildDocument>("Guild", GuildSchema, "guilds"); +// @ts-ignore +export const GuildModel = db.model<GuildDocument>("Guild", GuildSchema, "guilds"); |