Skip to content

Commit

Permalink
Merge pull request #257 from starknet-id/fix/discord-fw-callback
Browse files Browse the repository at this point in the history
fix: discord fw callback
  • Loading branch information
Th0rgal authored Sep 10, 2024
2 parents 6b262c3 + d1f8b22 commit fabbf71
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/endpoints/quests/discord_fw_callback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ pub async fn handler(
State(state): State<Arc<AppState>>,
Query(query): Query<TwitterOAuthCallbackQuery>,
) -> 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::<Vec<&str>>();
let quest_id = state_split[1].parse::<i64>().unwrap();
Expand Down

0 comments on commit fabbf71

Please sign in to comment.