mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
f76252e0d2
* fix(core): fix some webhook api body status 404 bug fix some webhook api body status 404 bug * fix(core): improve the webhook trigger logic improve the webhook trigger logic * chore: add changeset add changeset * chore: update the changeset update the changeset
14 lines
551 B
Markdown
14 lines
551 B
Markdown
---
|
|
"@logto/core": patch
|
|
---
|
|
|
|
fix the status code 404 error in webhook events payload
|
|
|
|
Impact webhook events:
|
|
|
|
- `Role.Scopes.Updated`
|
|
- `Organizations.Membership.Updates`
|
|
|
|
Issue: These webhook event payloads were returning a API response status code of 404 when the webhook was triggered.
|
|
Expected: A status code of 200 should be returned, as we only trigger the webhook when the request is successful.
|
|
Fix: All webhook event contexts should be created and inserted into the webhook pipeline after the response body and status code are properly set.
|