@cap-js-community/event-queue 1.11.0-beta.0 → 1.11.0-beta.1

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.11.0-beta.0",
3
+ "version": "1.11.0-beta.1",
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",
@@ -123,7 +123,7 @@ const _getAllTenantBase = async () => {
123
123
 
124
124
  // NOTE: tmp workaround until cds-mtxs fixes the connect.to service
125
125
  for (let i = 0; i < 10; i++) {
126
- if (cds.services["saas-registry"]) {
126
+ if (cds.services["cds.xt.SaasProvisioningService"] || cds.services["saas-registry"]) {
127
127
  break;
128
128
  }
129
129
  await new Promise((resolve) => setTimeout(resolve, 1000));
@@ -11,7 +11,7 @@ module.exports = class AdminService extends cds.ApplicationService {
11
11
  const { Event: EventDb } = cds.db.entities("sap.eventqueue");
12
12
  const { landscape, space } = this.getLandscapeAndSpace();
13
13
 
14
- this.before("*", async (req) => {
14
+ this.before("*", (req) => {
15
15
  if (!config.enableAdminService) {
16
16
  req.reject(403, "Admin service is disabled by configuration");
17
17
  }