mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-26 07:00:04 +00:00
Fix typo in getDmChannels helper
This commit is contained in:
@@ -364,7 +364,7 @@ export class User extends BaseClass {
|
||||
const qry = await Channel.getRepository()
|
||||
.createQueryBuilder()
|
||||
.leftJoinAndSelect("Channel.recipients", "rcp")
|
||||
.where("Channel.type = :type", { types: ChannelType.DM })
|
||||
.where("Channel.type = :type", { type: ChannelType.DM })
|
||||
.andWhere("rcp.user_id = :user_id", { user_id: this.id })
|
||||
.groupBy("Channel.id")
|
||||
.having("COUNT(rcp.user_id) = 2")
|
||||
|
||||
Reference in New Issue
Block a user