@cap-js-community/event-queue 1.11.0-beta.4 → 1.11.0-beta.5
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 +1 -1
- package/src/redis/redisPub.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cap-js-community/event-queue",
|
|
3
|
-
"version": "1.11.0-beta.
|
|
3
|
+
"version": "1.11.0-beta.5",
|
|
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",
|
package/src/redis/redisPub.js
CHANGED
|
@@ -120,7 +120,7 @@ const _processLocalWithoutRedis = async (tenantId, events) => {
|
|
|
120
120
|
if (tenantId) {
|
|
121
121
|
const user = await cds.tx({ tenant: tenantId }, async () => {
|
|
122
122
|
const authInfo = await common.getAuthContext(tenantId);
|
|
123
|
-
return new cds.User.Privileged({ id: config.userId, authInfo, tokenInfo: authInfo
|
|
123
|
+
return new cds.User.Privileged({ id: config.userId, authInfo, tokenInfo: authInfo?.token });
|
|
124
124
|
});
|
|
125
125
|
context = {
|
|
126
126
|
tenant: tenantId,
|