Skip to content

Commit

Permalink
Fix for Issue #416 and #417, updated document fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshrajamani committed May 9, 2023
1 parent 5d5d678 commit 70720c2
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,11 @@ private Uni<UpdatedDocument> processUpdate(
}
}

// otherwise shred
JsonNode updatedDocument = documentUpdaterResponse.document();
final WritableShreddedDocument writableShreddedDocument =
shredder().shred(updatedDocument, readDocument.txnId());
shredder().shred(documentUpdaterResponse.document(), readDocument.txnId());

// Have to do this because shredder adds _id field to the document if it doesn't exist
JsonNode updatedDocument = writableShreddedDocument.docJsonNode();

// update the document
return updatedDocument(queryExecutor, writableShreddedDocument)
Expand Down

0 comments on commit 70720c2

Please sign in to comment.