summary refs log tree commit diff
path: root/util/src/entities/Channel.ts
diff options
context:
space:
mode:
authorThe Arcane Brony <myrainbowdash949@gmail.com>2021-12-22 17:43:39 +0000
committerThe Arcane Brony <myrainbowdash949@gmail.com>2021-12-22 18:43:39 +0100
commit252051b95abb427f2bc8acf20de1c2b1fe64bcba (patch)
treeb4e5317d8b84d075d7f221ca70fd27efb2d66d93 /util/src/entities/Channel.ts
parentImprove build scripts, strip more fs-extras (diff)
downloadserver-252051b95abb427f2bc8acf20de1c2b1fe64bcba.tar.xz
Add Sentry, fix compile errors
Diffstat (limited to 'util/src/entities/Channel.ts')
-rw-r--r--util/src/entities/Channel.ts2
1 files changed, 1 insertions, 1 deletions
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) {