You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constvalidTopicAndOriginator=(pgOptions.triggerTopics.includes(payload.topic))&&(pgOptions.triggerOriginators.includes(payload.originator))// Check if valid topic and originator
27
28
if(validTopicAndOriginator){
28
29
if(!isFailover){
29
30
logger.info('trying to push on kafka topic')
30
31
awaitpushToKafka(payload)
31
-
audit(message)
32
32
logger.info('pushed to kafka and added for audit trail')
33
33
}else{
34
34
logger.info('taking backup on dynamodb for reconciliation')
35
35
awaitpushToDynamoDb(payload)
36
36
}
37
+
audit(message)
37
38
}else{
38
39
logger.debug('Ignoring message with incorrect topic or originator')
39
40
// push to slack - alertIt("slack message")
@@ -43,7 +44,7 @@ async function setupPgClient() {
0 commit comments