@cap-js-community/event-queue 1.10.0-beta.3 → 1.10.0-beta.4

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.10.0-beta.3",
3
+ "version": "1.10.0-beta.4",
4
4
  "description": "An event queue that enables secure transactional processing of asynchronous and periodic events, featuring instant event processing with Redis Pub/Sub and load distribution across all application instances.",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -112,7 +112,7 @@ class EventQueueGenericOutboxHandler extends EventQueueBaseClass {
112
112
  for (const clustersKey in clusters) {
113
113
  const clusterData = clusters[clustersKey];
114
114
  const clusterResult = cb(
115
- clustersKey.split("##").shift(),
115
+ clustersKey.split("##").pop(),
116
116
  clusterData.queueEntries.map((entry) => entry.payload.data)
117
117
  );
118
118
  if (!clusterResult) {