fix: hasItemQuery not use get

This commit is contained in:
molvqingtai 2024-09-17 03:10:46 +08:00
parent 59af3db87e
commit 15821eaa47

View file

@ -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))