Skip to content

Commit 44c6437

Browse files
committed
sentry - middleware - called_by_creator rename
1 parent 7054131 commit 44c6437

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sentry/src/middleware/campaign.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ where
111111
Ok(next.run(request).await)
112112
}
113113

114-
pub async fn called_by_campaign<C: Locked + 'static, B>(
114+
pub async fn called_by_creator<C: Locked + 'static, B>(
115115
request: axum::http::Request<B>,
116116
next: Next<B>,
117117
) -> Result<axum::response::Response, ResponseError>

sentry/src/routes/routers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use std::sync::Arc;
1717
use crate::{
1818
middleware::{
1919
auth::{authentication_required, AuthRequired, IsAdmin},
20-
campaign::{called_by_campaign, campaign_load, CalledByCreator, CampaignLoad},
20+
campaign::{called_by_creator, campaign_load, CalledByCreator, CampaignLoad},
2121
channel::{channel_load, ChannelLoad},
2222
Chain, Middleware,
2323
},
@@ -330,7 +330,7 @@ pub fn campaigns_router_axum<C: Locked + 'static>() -> Router {
330330
post(campaign::update_campaign::handle_route_axum::<C>).route_layer(
331331
ServiceBuilder::new()
332332
.layer(middleware::from_fn(authentication_required::<C, _>))
333-
.layer(middleware::from_fn(called_by_campaign::<C, _>)),
333+
.layer(middleware::from_fn(called_by_creator::<C, _>)),
334334
),
335335
)
336336
.route(

0 commit comments

Comments
 (0)