summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-09 13:59:02 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-09 13:59:02 +0200
commitbd7b29cb1edba922524330ef3505908c797e057a (patch)
tree9185dff910ae324b39c3e0e14e86fc01990c5cfa /src
parent:bug: fix Activity model with body schema (diff)
downloadserver-bd7b29cb1edba922524330ef3505908c797e057a.tar.xz
:bug: fix Activity model
Diffstat (limited to 'src')
-rw-r--r--src/models/Activity.ts3
-rw-r--r--src/models/index.ts12
2 files changed, 8 insertions, 7 deletions
diff --git a/src/models/Activity.ts b/src/models/Activity.ts

index e31f0019..2d70379c 100644 --- a/src/models/Activity.ts +++ b/src/models/Activity.ts
@@ -1,6 +1,7 @@ import { User } from ".."; import { ClientStatus, Status } from "./Status"; import { Schema, model, Types, Document } from "mongoose"; +import toBigInt from "../util/toBigInt"; export interface Presence { user: User; @@ -81,7 +82,7 @@ export const ActivitySchema = { match: String, }, instance: Boolean, - flags: BigInt, + flags: { type: String, get: toBigInt }, }; export const ActivityBodySchema = { diff --git a/src/models/index.ts b/src/models/index.ts
index 876e5984..5752e60d 100644 --- a/src/models/index.ts +++ b/src/models/index.ts
@@ -19,18 +19,18 @@ mongoose.plugin((schema: Schema, opts: any) => { }); }); +export * from "./Activity"; +export * from "./Application"; export * from "./Ban"; export * from "./Channel"; export * from "./Emoji"; +export * from "./Event"; export * from "./Guild"; export * from "./Invite"; -export * from "./Member"; -export * from "./Role"; -export * from "./User"; -export * from "./Activity"; -export * from "./Application"; export * from "./Interaction"; +export * from "./Member"; export * from "./Message"; export * from "./Status"; +export * from "./Role"; +export * from "./User"; export * from "./VoiceState"; -export * from "./Event";