mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
fix(dispatch): enforce match criteria for fallback routes
This commit is contained in:
parent
80cc85cd76
commit
ac8b4a77b8
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ export async function dispatchEvent(config: Config, event: WebhookEvent, env: En
|
|||
const tasks = config.routes
|
||||
.filter((route) => {
|
||||
if (!accepted(route)) return false;
|
||||
if (route.fallback) return !anyRegularMatched;
|
||||
if (route.fallback) return !anyRegularMatched && matchRoute(route, event);
|
||||
return matchRoute(route, event);
|
||||
})
|
||||
.map(async (route) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue