summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-02-25 05:55:50 +0100
committerRory& <root@rory.gay>2026-02-25 05:55:50 +0100
commit49516f018c300962aed161daea7f7035298c249e (patch)
treeaf7f8b6e9061c4161b50226447782f9ac9e06171 /src/api
parentswap migration order (diff)
downloadserver-ts-49516f018c300962aed161daea7f7035298c249e.tar.xz
Fix read state type field - fixes #1559
Diffstat (limited to 'src/api')
-rw-r--r--src/api/util/handlers/Message.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts

index f78827ed..85fb81f8 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<Message> { 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 {