Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Kunz committed Oct 11, 2024
1 parent 8ea7c6a commit 3f77fd0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cds-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,10 @@ class EventBroker extends cds.MessagingService {
const context = { user: cds.User.privileged, /*_: msg._*/ }
if (msg.tenant) context.tenant = msg.tenant

await this.tx(context, tx => tx.emit(msg))
await this.tx(context, tx => {
delete cds.context.http.req.headers.authorization
return tx.emit(msg)
})
this.LOG.debug('Event processed successfully.')
return res.status(200).json({ message: 'OK' })
} catch (e) {
Expand Down

0 comments on commit 3f77fd0

Please sign in to comment.