From af6f9b57ad4a7fd05d4ffa19440012084fb5071f Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Tue, 6 Apr 2021 04:30:04 +0200 Subject: :bug: fix user guilds --- src/util/User.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/util/User.ts') diff --git a/src/util/User.ts b/src/util/User.ts index 1b13e153..3658e46d 100644 --- a/src/util/User.ts +++ b/src/util/User.ts @@ -16,7 +16,9 @@ export async function getPublicUser(user_id: bigint, additional_fields?: any) { ...PublicUserProjection, ...additional_fields, } - ).exec(); + ) + .lean() + .exec(); if (!user) throw new HTTPError("User not found", 404); return user; } -- cgit 1.5.1