We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generator-graphql-rocket/generators/app/templates/infrastructure/src/pubSub/middleware/tenantPublish.js
Line 5 in 72c1aab
On this line we need to validate that ctx.message.headers exists. Right now we get "Can not set pubSubTenantId of undefined."
ctx.message.headers
pubSubTenantId
suggested fix:
const tenantPublish = async (ctx, next) => { const tenantContext = tenantContextAccessor.getTenantContext() ctx.message.headers = ctx.message.headers || {} ctx.message.headers.pubSubTenantId = tenantContext?.tenant?.id return await next() }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
generator-graphql-rocket/generators/app/templates/infrastructure/src/pubSub/middleware/tenantPublish.js
Line 5 in 72c1aab
On this line we need to validate that
ctx.message.headers
exists. Right now we get "Can not setpubSubTenantId
of undefined."suggested fix:
The text was updated successfully, but these errors were encountered: