Skip to content

Commit 47030d9

Browse files
committed
use incremental patch to avoid conflict error
1 parent b9fb35b commit 47030d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/js/Database.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class Message {
180180
});
181181

182182
// patch the message with the new acked by id
183-
return await latestMessageByPacketId.patch({
183+
return await latestMessageByPacketId.incrementalPatch({
184184
acked_by_node_id: ackedByNodeId,
185185
});
186186

@@ -204,7 +204,7 @@ class Message {
204204
});
205205

206206
// patch the message with the error
207-
return await latestMessageByPacketId.patch({
207+
return await latestMessageByPacketId.incrementalPatch({
208208
error: error,
209209
});
210210

@@ -231,7 +231,7 @@ class Message {
231231
});
232232

233233
// patch the message with the error
234-
return await latestMessageByText.patch({
234+
return await latestMessageByText.incrementalPatch({
235235
error: errorMessage,
236236
});
237237

0 commit comments

Comments
 (0)