Skip to content

Commit 8a140b9

Browse files
committed
only write to dynamic route set if route does not exist
1 parent dd3d169 commit 8a140b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/event-handler/src/rest/RouteHandlerRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ class RouteHandlerRegistry {
8888
this.#dynamicRoutes[i] = dynamicRoute;
8989
} else {
9090
this.#dynamicRoutes.push(dynamicRoute);
91+
this.#dynamicRoutesSet.add(route.id);
9192
}
92-
this.#dynamicRoutesSet.add(route.id);
9393
} else {
9494
if (this.#staticRoutes.has(route.id)) {
9595
this.#logger.warn(

0 commit comments

Comments
 (0)