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
commita9a92ff2cb3f9668d7a3d5b025bc20753a4c934c (patch)
treedc98592046563ed486c9a5ebd18d2618d769b59b /util/src/entities/Channel.ts
parentImprove build scripts, strip more fs-extras (diff)
downloadserver-a9a92ff2cb3f9668d7a3d5b025bc20753a4c934c.tar.xz
Add Sentry, fix compile errors
Diffstat (limited to '')
-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) {