corebasic 1.0.132 → 1.0.134

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/libs/features.js +3 -1
  2. package/package.json +1 -1
package/libs/features.js CHANGED
@@ -194,8 +194,10 @@ export const start = async (app, url, file) => {
194
194
  // Subscribe to each topic
195
195
  for (let topic of kafkaTopics) {
196
196
  Kafka.receive(`Features.${topic}`, async (topic, message) => {
197
- if (Utils.isEmpty(message.meta.company))
197
+ if (Utils.isEmpty(message.meta?.company))
198
198
  message.meta = { ...message.meta, company: "GLOBAL", outlet: "GLOBAL" }
199
+ if (!message?.feature)
200
+ return
199
201
 
200
202
  const timer = ms => new Promise(res => setTimeout(res, ms)) // A promise that resolves after "ms" Milliseconds
201
203
  topic = topic.replace(/^.*Features./,'')
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.132",
4
+ "version": "1.0.134",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {