Skip to content

Commit 0219e45

Browse files
committed
fix: channel_load middleware
1 parent db415ec commit 0219e45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ async fn channels_router<A: Adapter + 'static>(
264264
]);
265265
req.extensions_mut().insert(param);
266266

267+
let req = chain(req, app, vec![Box::new(channel_load)]).await?;
268+
267269
list_channel_event_aggregates(req, app).await
268270
} else if let (Some(caps), &Method::POST) =
269271
(CREATE_EVENTS_BY_CHANNEL_ID.captures(&path), method)
@@ -278,8 +280,6 @@ async fn channels_router<A: Adapter + 'static>(
278280

279281
req.extensions_mut().insert(param);
280282

281-
let req = chain(req, app, vec![Box::new(channel_load)]).await?;
282-
283283
insert_events(req, app).await
284284
} else {
285285
Err(ResponseError::NotFound)

0 commit comments

Comments
 (0)