From 252051b95abb427f2bc8acf20de1c2b1fe64bcba Mon Sep 17 00:00:00 2001 From: The Arcane Brony Date: Wed, 22 Dec 2021 17:43:39 +0000 Subject: Add Sentry, fix compile errors --- util/src/entities/Channel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/src/entities/Channel.ts') diff --git a/util/src/entities/Channel.ts b/util/src/entities/Channel.ts index bd2e5a58..4036b5d6 100644 --- a/util/src/entities/Channel.ts +++ b/util/src/entities/Channel.ts @@ -203,7 +203,7 @@ export class Channel extends BaseClass { static async createDMChannel(recipients: string[], creator_user_id: string, name?: string) { recipients = recipients.unique().filter((x) => x !== creator_user_id); - const otherRecipientsUsers = await User.find({ where: recipients.map((x) => ({ id: x })), select: ["id"] }); + const otherRecipientsUsers = await User.find({ where: recipients.map((x) => ({ id: x })) }); // TODO: check config for max number of recipients if (otherRecipientsUsers.length !== recipients.length) { -- cgit 1.5.1