Fix typo in getDmChannels helper

This commit is contained in:
Rory&
2025-12-13 02:07:35 +01:00
parent 3f5e25dd3f
commit d41015862c
+1 -1
View File
@@ -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")