From d41015862c27adbdd049aebaca59555205afb3e1 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 13 Dec 2025 02:07:35 +0100 Subject: [PATCH] Fix typo in getDmChannels helper --- src/util/entities/User.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index 18d0f805f..9ef531412 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -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")