Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
omsant02 committed Nov 27, 2024
1 parent c90748f commit bec57b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/endpoints/admin/quest_boost/get_boost_winners.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct GetBoostWinnersParams {
#[route(get, "/admin/boosts/get_boost_winners", auth_middleware)]
pub async fn get_boost_winners_handler(
State(state): State<Arc<AppState>>,
Extension(_sub): Extension<String>, // Assuming admin authentication is handled
Extension(_sub): Extension<String>,
Query(params): Query<GetBoostWinnersParams>,
) -> impl IntoResponse {
let collection = state.db.collection::<BoostTable>("boosts");
Expand Down
4 changes: 1 addition & 3 deletions src/endpoints/admin/quest_boost/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
pub mod create_boost;
pub mod get_boost_winners;
pub mod get_quest_users;
pub mod update_boost;

pub use get_boost_winners::get_boost_winners_handler;
pub mod update_boost;

0 comments on commit bec57b7

Please sign in to comment.