@cap-js-community/event-queue
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@cap-js-community/event-queue", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "An event queue that enables secure transactional processing of asynchronous events, featuring instant event processing with Redis Pub/Sub and load distribution across all application instances.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -154,3 +154,3 @@ "use strict"; | ||
this.__performanceLoggerPreprocessing?.endPerformanceTrace( | ||
{ threshold: 50 }, | ||
{ threshold: this.#config.thresholdLoggingEventProcessing }, | ||
{ | ||
@@ -157,0 +157,0 @@ eventType: this.#eventType, |
@@ -119,5 +119,9 @@ "use strict"; | ||
const response = await ssp.get("/tenant"); | ||
return response.map((tenant) => tenant.subscribedTenantId ?? tenant.tenant); | ||
return response | ||
.map((tenant) => tenant.subscribedTenantId ?? tenant.tenant) | ||
.filter((tenantId) => !isFakeTenant(tenantId)); | ||
}; | ||
const isFakeTenant = (tenantId) => /00000000-0000-4000-8000-\d{12}/.test(tenantId); | ||
module.exports = { | ||
@@ -124,0 +128,0 @@ executeInNewTransaction, |
143194
3423