🐛 convert bigint -> string

This commit is contained in:
Flam3rboy
2021-08-29 17:12:46 +02:00
parent 641af37d5a
commit bee6f71298
9 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export async function onIdentify(this: WebSocket, data: Payload) {
}
}
const members = await Member.find({ where: { id: this.user_id }, relations: ["guilds"] });
const members = await Member.find({ where: { id: this.user_id }, relations: ["guild"] });
const merged_members = members.map((x: any) => {
const y = { ...x, user_id: x.id };
delete y.settings;
+2 -2
View File
@@ -39,7 +39,7 @@ export const ActivitySchema = {
$match: String,
},
$instance: Boolean,
$flags: BigInt,
$flags: String,
},
],
$since: Number, // unix time (in milliseconds) of when the client went idle, or null if the client is not idle
@@ -79,7 +79,7 @@ export interface ActivitySchema {
match?: string; // the secret for a specific instanced match
};
instance?: boolean;
flags: bigint; // activity flags OR d together, describes what the payload includes
flags: string; // activity flags OR d together, describes what the payload includes
}
];
since?: number; // unix time (in milliseconds) of when the client went idle, or null if the client is not idle