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

Commit e13e30b

Browse files
committed
feat: disable topic from u-bahn-api
1 parent 45f63a5 commit e13e30b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/app.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,19 @@ const dataHandler = (messageSet, topic, partition) => Promise.each(messageSet, a
7171
const transactionId = _.uniqueId('transaction_')
7272
try {
7373
if (messageJSON.payload.originalTopic) {
74-
switch (messageJSON.payload.originalTopic) {
75-
case config.UBAHN_CREATE_TOPIC:
76-
await ProcessorService.processCreate(messageJSON, transactionId)
77-
break
78-
case config.UBAHN_UPDATE_TOPIC:
79-
await ProcessorService.processUpdate(messageJSON, transactionId)
80-
break
81-
case config.UBAHN_DELETE_TOPIC:
82-
await ProcessorService.processDelete(messageJSON, transactionId)
83-
break
84-
default:
85-
throw new Error(`Unknown original topic: ${messageJSON.payload.originalTopic}`)
86-
}
74+
// switch (messageJSON.payload.originalTopic) {
75+
// case config.UBAHN_CREATE_TOPIC:
76+
// await ProcessorService.processCreate(messageJSON, transactionId)
77+
// break
78+
// case config.UBAHN_UPDATE_TOPIC:
79+
// await ProcessorService.processUpdate(messageJSON, transactionId)
80+
// break
81+
// case config.UBAHN_DELETE_TOPIC:
82+
// await ProcessorService.processDelete(messageJSON, transactionId)
83+
// break
84+
// default:
85+
// throw new Error(`Unknown original topic: ${messageJSON.payload.originalTopic}`)
86+
// }
8787
} else {
8888
switch (topic) {
8989
case config.GROUPS_MEMBER_ADD_TOPIC:

0 commit comments

Comments
 (0)