diff --git a/os-loader.js b/os-loader.js index 54a799ce2..865a617ae 100644 --- a/os-loader.js +++ b/os-loader.js @@ -174,10 +174,7 @@ async function OpenSearchUpdateHandler(req, res) { const bulkOperation = []; slicedArray.forEach((bill) => { bulkOperation.push({ index: { _index: "bills", _id: bill.id } }); - bulkOperation.push({ - ...omit(bill, ["job"]), - bodyshopid: bill.job.bodyshopid - }); + bulkOperation.push({ ...bill, bodyshopid: bill.job.bodyshopid }); }); promiseQueue.push(bulkOperation); }