summary refs log tree commit diff
path: root/util/src/entities/Channel.ts
diff options
context:
space:
mode:
authorChris Chrome <christophercookman@gmail.com>2021-12-26 13:38:25 -0500
committerGitHub <noreply@github.com>2021-12-26 13:38:25 -0500
commit78b33a8b7a56caac8b460daa63a2f48d7c8b5549 (patch)
tree4d72614aef511f0e44be20d425dfae79a56dce1e /util/src/entities/Channel.ts
parentFix the casing (diff)
parentAdd env name in sentry, set default sentry endpoint (diff)
downloadserver-78b33a8b7a56caac8b460daa63a2f48d7c8b5549.tar.xz
Merge pull request #553 from TheArcaneBrony/master
Remove fs-extras, add Sentry support, fix compile errors, fix some typos
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) {