cap-js-community / event-queue

An event queue that enables secure multi-tenant enabled transactional processing of asynchronous events, featuring instant event processing with Redis Pub/Sub and load distribution across all application instances.
https://cap-js-community.github.io/event-queue/
Apache License 2.0
11 stars 1 forks source link

Add missing test for db handler registrations #112

Closed soccermax closed 5 months ago

soccermax commented 5 months ago

tests did not detect typo in "db "

  if (config.processEventsAfterPublish) {
    cds.on("connect", (service) => {
      if (service.name === "db ") {
        dbHandler.registerEventQueueDbHandler(service);
      }
    });
  }
soccermax commented 5 months ago