Skip to content

Commit

Permalink
fix: reverse to slice.reverse #92 (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-uei authored Jan 19, 2023
1 parent 4bbfc34 commit 06641e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function composeMiddlewares(state: BlogState) {
connInfo: ConnInfo,
inner: (req: Request, ctx: BlogContext) => Promise<Response>,
) => {
const mws = state.middlewares?.reverse();
const mws = state.middlewares?.slice().reverse();

const handlers: (() => Response | Promise<Response>)[] = [];

Expand Down

0 comments on commit 06641e4

Please sign in to comment.