summary refs log tree commit diff
path: root/src/opcodes/Identify.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-07 20:26:09 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-07 20:26:09 +0200
commitd3d733a975e520a2f069ecdec1696a4f3043a517 (patch)
tree1e90a3577da32a07cee0ece1826cee46094aa4e9 /src/opcodes/Identify.ts
parentfix tsc missing (diff)
downloadserver-d3d733a975e520a2f069ecdec1696a4f3043a517.tar.xz
:zap: use mongoose autopopulate
Diffstat (limited to 'src/opcodes/Identify.ts')
-rw-r--r--src/opcodes/Identify.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/opcodes/Identify.ts b/src/opcodes/Identify.ts

index 76e3b6aa..1fa75ec1 100644 --- a/src/opcodes/Identify.ts +++ b/src/opcodes/Identify.ts
@@ -10,12 +10,12 @@ import { ReadyEventData, UserModel, toObject, + EVENTEnum, } from "fosscord-server-util"; import { setupListener } from "../listener/listener"; import { instanceOf } from "lambert-server"; import { IdentifySchema } from "../schema/Identify"; import { Send } from "../util/Send"; -import { EVENTEnum } from "fosscord-server-util"; import experiments from "./experiments.json"; import { check } from "./instanceOf"; @@ -62,9 +62,6 @@ export async function onIdentify(this: WebSocket, data: Payload) { }; const guilds = await GuildModel.find({ id: { $in: user.guilds } }) - .populate("channels") - .populate("roles") - .populate("emojis") .populate({ path: "joined_at", match: { id: this.user_id } }) .exec();