@cap-js-community/event-queue 1.0.1 → 1.0.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cap-js-community/event-queue",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"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
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -151,7 +151,7 @@ class EventQueueProcessorBase {
|
|
|
151
151
|
|
|
152
152
|
endPerformanceTracerPreprocessing() {
|
|
153
153
|
this.__performanceLoggerPreprocessing?.endPerformanceTrace(
|
|
154
|
-
{ threshold:
|
|
154
|
+
{ threshold: this.#config.thresholdLoggingEventProcessing },
|
|
155
155
|
{
|
|
156
156
|
eventType: this.#eventType,
|
|
157
157
|
eventSubType: this.#eventSubType,
|
package/src/shared/cdsHelper.js
CHANGED
|
@@ -116,9 +116,13 @@ const getAllTenantIds = async () => {
|
|
|
116
116
|
}
|
|
117
117
|
const ssp = await cds.connect.to("cds.xt.SaasProvisioningService");
|
|
118
118
|
const response = await ssp.get("/tenant");
|
|
119
|
-
return response
|
|
119
|
+
return response
|
|
120
|
+
.map((tenant) => tenant.subscribedTenantId ?? tenant.tenant)
|
|
121
|
+
.filter((tenantId) => !isFakeTenant(tenantId));
|
|
120
122
|
};
|
|
121
123
|
|
|
124
|
+
const isFakeTenant = (tenantId) => /00000000-0000-4000-8000-\d{12}/.test(tenantId);
|
|
125
|
+
|
|
122
126
|
module.exports = {
|
|
123
127
|
executeInNewTransaction,
|
|
124
128
|
TriggerRollback,
|