diff --git a/src/endpoints/quests/discord_fw_callback.rs b/src/endpoints/quests/discord_fw_callback.rs index 80eed6ae..e16df322 100644 --- a/src/endpoints/quests/discord_fw_callback.rs +++ b/src/endpoints/quests/discord_fw_callback.rs @@ -36,8 +36,7 @@ pub async fn handler( State(state): State>, Query(query): Query, ) -> impl IntoResponse { - let conf = config::load(); - let logger = Logger::new(&conf.watchtower); + let logger = &state.logger; // the state is in format => "address+quest_id+task_id" let state_split = query.state.split('+').collect::>(); let quest_id = state_split[1].parse::().unwrap();