Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
[#693] Fix reindexing issues
Browse files Browse the repository at this point in the history
The error was caused by a bug on NodeJS 6.9.5 (possibly 6.x), reported on
nodejs/node#11545.

opentrials/opentrials#693
  • Loading branch information
vitorbaptista committed Feb 25, 2017
1 parent a3f79b4 commit 490f9d0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/indexers/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,10 @@ function _bulkIndexEntities(entities, index, indexType) {
delete entity._parent; // eslint-disable-line no-param-reassign
}

return [
...result,
return result.concat([
action,
JSON.parse(JSON.stringify(entity)),
];
entity,
]);
}, []);

let result;
Expand Down

0 comments on commit 490f9d0

Please sign in to comment.