From 15821eaa47203178accf7634ebf8af1ca0d33de0 Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Tue, 17 Sep 2024 03:10:46 +0800 Subject: [PATCH] fix: hasItemQuery not use get --- src/domain/Room.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/Room.ts b/src/domain/Room.ts index bd1abaa..27ca18c 100644 --- a/src/domain/Room.ts +++ b/src/domain/Room.ts @@ -164,7 +164,7 @@ const RoomDomain = Remesh.domain({ hateUsers: [] }) case 'like': { - if (!messageListDomain.query.HasItemQuery(message.id)) { + if (!get(messageListDomain.query.HasItemQuery(message.id))) { return null } const _message = get(messageListDomain.query.ItemQuery(message.id)) @@ -178,7 +178,7 @@ const RoomDomain = Remesh.domain({ }) } case 'hate': { - if (!messageListDomain.query.HasItemQuery(message.id)) { + if (!get(messageListDomain.query.HasItemQuery(message.id))) { return null } const _message = get(messageListDomain.query.ItemQuery(message.id))