Skip to content

Commit b1abb51

Browse files
author
Vikas Agarwal
committed
Fixed path of data in ES response
1 parent ea0cd36 commit b1abb51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/events/projects/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ async function projectUpdatedKafkaHandler(app, topic, payload) {
172172
// first get the existing document and than merge the updated changes and save the new document
173173
try {
174174
const doc = await eClient.get({ index: ES_PROJECT_INDEX, type: ES_PROJECT_TYPE, id: previousValue.id });
175-
console.log(doc, 'Received project from ES');
175+
console.log(doc._source, 'Received project from ES');
176176
const merged = _.merge(doc._source, project.get({ plain: true })); // eslint-disable-line no-underscore-dangle
177177
console.log(merged, 'Merged project');
178178
// update the merged document

0 commit comments

Comments
 (0)