From 49516f018c300962aed161daea7f7035298c249e Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 25 Feb 2026 05:55:50 +0100 Subject: [PATCH] Fix read state type field - fixes #1559 --- src/api/util/handlers/Message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index f78827edf..85fb81f8d 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -444,7 +444,7 @@ export async function handleMessage(opts: MessageOptions): Promise { await fillInMissingIDs((await Member.find({ where: { guild_id: channel.guild_id } })).map(({ id }) => id)); } const repository = ReadState.getRepository(); - const condition = { channel_id: channel.id, type: ReadStateType.CHANNEL }; + const condition = { channel_id: channel.id, read_state_type: ReadStateType.CHANNEL }; await repository.update({ ...condition, mention_count: IsNull() }, { mention_count: 0 }); await repository.increment(condition, "mention_count", 1); } else {