Skip to content

Commit

Permalink
fix: update responds with update request not whole document
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Feb 17, 2024
1 parent 3e8db36 commit 1a0f2f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,8 @@ function openCursor(objectStore, range, direction, data, newData, isFilter, inde
if (data.method == 'object.update') {
let update = createUpdate(cursor.value, data[type][i], globalOperators)
if (update)
result = await cursorUpdate(cursor, update)
await cursorUpdate(cursor, update)
result = data[type][i]
// result = cursor.update(update)
hasUpdated = true
// set dotnotation for keys with $operators for items that end in [] to be used by socket.id
Expand Down

0 comments on commit 1a0f2f0

Please sign in to comment.