corebasic 1.0.131 → 1.0.133
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.
- package/libs/elabase.js +1 -1
- package/libs/features.js +1 -1
- package/package.json +1 -1
package/libs/elabase.js
CHANGED
|
@@ -25,7 +25,7 @@ let Events = {
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
const url = process.env.DIP_URL || "http://127.0.0.1"; // Set DIP_URL to "http://dip" (Prod) or http://dip-dev (Dev) in CI/CD
|
|
28
|
-
let port = 9401
|
|
28
|
+
let port = process.env.DIP_PORT || 9401
|
|
29
29
|
let api = 'execute'
|
|
30
30
|
let fullurl = `${url}:${port}/${api}`
|
|
31
31
|
|
package/libs/features.js
CHANGED
|
@@ -194,7 +194,7 @@ 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
|
|
197
|
+
if (Utils.isEmpty(message.meta?.company))
|
|
198
198
|
message.meta = { ...message.meta, company: "GLOBAL", outlet: "GLOBAL" }
|
|
199
199
|
|
|
200
200
|
const timer = ms => new Promise(res => setTimeout(res, ms)) // A promise that resolves after "ms" Milliseconds
|