Skip to content

Commit 6aeb263

Browse files
committed
undefined access fix
1 parent aa0441f commit 6aeb263

File tree

3 files changed

+36
-25
lines changed

3 files changed

+36
-25
lines changed

package-lock.json

Lines changed: 34 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cap-js-community/event-queue",
3-
"version": "1.11.0-beta.4",
3+
"version": "1.11.0-beta.5",
44
"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.",
55
"main": "src/index.js",
66
"types": "src/index.d.ts",

src/redis/redisPub.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const _processLocalWithoutRedis = async (tenantId, events) => {
120120
if (tenantId) {
121121
const user = await cds.tx({ tenant: tenantId }, async () => {
122122
const authInfo = await common.getAuthContext(tenantId);
123-
return new cds.User.Privileged({ id: config.userId, authInfo, tokenInfo: authInfo.token });
123+
return new cds.User.Privileged({ id: config.userId, authInfo, tokenInfo: authInfo?.token });
124124
});
125125
context = {
126126
tenant: tenantId,

0 commit comments

Comments
 (0)