🐛 fix Activity model

This commit is contained in:
Flam3rboy 2021-04-09 13:59:02 +02:00
parent e5ada80d7e
commit bd7b29cb1e
2 changed files with 8 additions and 7 deletions

View File

@ -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 = {

View File

@ -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";