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

Commit 490f9d0

Browse files
committed
[#693] Fix reindexing issues
The error was caused by a bug on NodeJS 6.9.5 (possibly 6.x), reported on nodejs/node#11545. opentrials/opentrials#693
1 parent a3f79b4 commit 490f9d0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tools/indexers/helpers.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,10 @@ function _bulkIndexEntities(entities, index, indexType) {
7474
delete entity._parent; // eslint-disable-line no-param-reassign
7575
}
7676

77-
return [
78-
...result,
77+
return result.concat([
7978
action,
80-
JSON.parse(JSON.stringify(entity)),
81-
];
79+
entity,
80+
]);
8281
}, []);
8382

8483
let result;

0 commit comments

Comments
 (0)