Skip to content

Commit

Permalink
use incremental patch to avoid conflict error
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Nov 20, 2024
1 parent b9fb35b commit 47030d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/Database.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class Message {
});

// patch the message with the new acked by id
return await latestMessageByPacketId.patch({
return await latestMessageByPacketId.incrementalPatch({
acked_by_node_id: ackedByNodeId,
});

Expand All @@ -204,7 +204,7 @@ class Message {
});

// patch the message with the error
return await latestMessageByPacketId.patch({
return await latestMessageByPacketId.incrementalPatch({
error: error,
});

Expand All @@ -231,7 +231,7 @@ class Message {
});

// patch the message with the error
return await latestMessageByText.patch({
return await latestMessageByText.incrementalPatch({
error: errorMessage,
});

Expand Down

0 comments on commit 47030d9

Please sign in to comment.