Skip to content

fix (?) the after phase handler sample in messaging topic#1934

Merged
renejeglinsky merged 1 commit into
mainfrom
qmacro-patch-1
Jun 25, 2025
Merged

fix (?) the after phase handler sample in messaging topic#1934
renejeglinsky merged 1 commit into
mainfrom
qmacro-patch-1

Conversation

@qmacro
Copy link
Copy Markdown
Collaborator

@qmacro qmacro commented Jun 25, 2025

I may have misunderstood something, but ...

The req parameter is second, not first, in after phase handlers (see https://cap.cloud.sap/docs/node.js/core-services#srv-after-request). Different values, depending on the actual event (create, update, delete) will be provided for the first argument, none of which is the request.

I may have misunderstood something, but ...

The `req` parameter is second, not first, in `after` phase handlers (see https://cap.cloud.sap/docs/node.js/core-services#srv-after-request). Different values, depending on the actual event (create, update, delete) will be provided for the first argument, none of which are the request.
@qmacro qmacro requested a review from renejeglinsky as a code owner June 25, 2025 10:47
@sjvans
Copy link
Copy Markdown
Contributor

sjvans commented Jun 25, 2025

good catch!

@renejeglinsky renejeglinsky added this pull request to the merge queue Jun 25, 2025
Merged via the queue into main with commit faa6743 Jun 25, 2025
4 checks passed
@renejeglinsky renejeglinsky deleted the qmacro-patch-1 branch June 25, 2025 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants