Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 7edbda6

Browse files
author
Sachin Maheshwari
committed
testing done
1 parent 93fad26 commit 7edbda6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/common/helper.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ async function postEvent (topic, payload) {
167167
* @params {String} action for which operation error occurred
168168
*/
169169
async function publishError (topic, payload, action) {
170-
logger.debug(`Publish error to Kafka topic ${topic}, ${JSON.stringify(payload, null, 2)}`)
171170
_.set(payload, 'apiAction', action)
172171
const message = {
173172
topic,
@@ -176,7 +175,7 @@ async function postEvent (topic, payload) {
176175
'mime-type': 'application/json',
177176
payload
178177
}
179-
logger.debug(`Final message, ${JSON.stringify(message, null, 2)}`)
178+
logger.debug(`Publish error to Kafka topic ${topic}, ${JSON.stringify(message, null, 2)}`)
180179
await busApiClient.postEvent(message)
181180
}
182181

src/common/service-helper.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ async function createRecordInEs (resource, entity, toEs) {
6565
async function patchRecordInEs (resource, entity, toEs) {
6666
try {
6767
if (toEs) {
68-
//await esHelper.processUpdate(resource, entity)
69-
throw "throwing error"
68+
await esHelper.processUpdate(resource, entity)
7069
}
7170
} catch (err) {
7271
logger.logFullError(err)

0 commit comments

Comments
 (0)