@cap-js-community/event-queue 1.10.0 → 1.10.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.10.
|
|
3
|
+
"version": "1.10.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",
|
|
@@ -329,7 +329,7 @@ class EventQueueGenericOutboxHandler extends EventQueueBaseClass {
|
|
|
329
329
|
async #setContextUser(context, userId, data) {
|
|
330
330
|
context.user = new cds.User.Privileged({
|
|
331
331
|
id: userId,
|
|
332
|
-
|
|
332
|
+
tokenInfo: await common.getTokenInfo(this.baseContext.tenant),
|
|
333
333
|
});
|
|
334
334
|
if (data) {
|
|
335
335
|
data.user = context.user;
|
package/src/runner/runner.js
CHANGED
|
@@ -146,7 +146,7 @@ const _executeEventsAllTenantsRedis = async (tenantIds) => {
|
|
|
146
146
|
async () => {
|
|
147
147
|
tx.context.user = new cds.User.Privileged({
|
|
148
148
|
id: config.userId,
|
|
149
|
-
|
|
149
|
+
tokenInfo: await common.getTokenInfo(tenantId),
|
|
150
150
|
});
|
|
151
151
|
const entries = await openEvents.getOpenQueueEntries(tx, false);
|
|
152
152
|
logger.info("broadcasting events for run", {
|