fix: can not mark entry as unread, close #4039
This commit is contained in:
parent
352e8ef3a1
commit
8ea13a3fb5
|
|
@ -196,9 +196,15 @@ class UnreadSyncService {
|
|||
})
|
||||
|
||||
tx.request(async () => {
|
||||
await apiClient().reads.$post({
|
||||
json: { entryIds: [entryId] },
|
||||
})
|
||||
if (read) {
|
||||
await apiClient().reads.$post({
|
||||
json: { entryIds: [entryId] },
|
||||
})
|
||||
} else {
|
||||
await apiClient().reads.$delete({
|
||||
json: { entryId },
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
tx.rollback(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue