summary refs log tree commit diff
path: root/src/models/Event.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/Event.ts
parent:bug: fix database (diff)
downloadserver-57746da87206f31c8612b975df37305fb2a5e0b7.tar.xz
:bug: fix database
Diffstat (limited to 'src/models/Event.ts')
-rw-r--r--src/models/Event.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/models/Event.ts b/src/models/Event.ts

index 515c6119..15b37f55 100644 --- a/src/models/Event.ts +++ b/src/models/Event.ts
@@ -11,6 +11,7 @@ import { VoiceState } from "./VoiceState"; import { ApplicationCommand } from "./Application"; import { Interaction } from "./Interaction"; import { Schema, model, Types, Document } from "mongoose"; +import db from "../util/Database"; export interface Event { guild_id?: bigint; @@ -32,7 +33,8 @@ export const EventSchema = new Schema({ data: Object, }); -export const EventModel = model<EventDocument>("Event", EventSchema, "events"); +// @ts-ignore +export const EventModel = db.model<EventDocument>("Event", EventSchema, "events"); // ! Custom Events that shouldn't get sent to the client but processed by the server