Skip to content

Commit

Permalink
removes the use of cloned doc for the first insert (becauses it mutat…
Browse files Browse the repository at this point in the history
…es some props)
  • Loading branch information
ValJed committed Oct 2, 2023
1 parent 90395d3 commit dbac1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/methods/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ module.exports = self => {

try {
const inserted = await self.insertOrUpdateDoc(req, {
doc: cloned,
doc,
duplicatedIds,
failedIds
});
Expand Down

0 comments on commit dbac1bf

Please sign in to comment.