Skip to content

Commit

Permalink
Merge pull request #214 from starknet-id/ayush/haiko-fix
Browse files Browse the repository at this point in the history
feat: remove discord task
  • Loading branch information
Th0rgal authored May 3, 2024
2 parents f525893 + 7d51971 commit e191cca
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 156 deletions.
4 changes: 2 additions & 2 deletions src/endpoints/quests/haiko/claimable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ use starknet::{
use std::sync::Arc;

const QUEST_ID: u32 = 29;
const TASK_IDS: &[u32] = &[140, 141, 142, 143, 144];
const LAST_TASK: u32 = TASK_IDS[4];
const TASK_IDS: &[u32] = &[140, 141, 142, 143];
const LAST_TASK: u32 = TASK_IDS[3];
const NFT_LEVEL: u32 = 41;

#[derive(Deserialize)]
Expand Down
151 changes: 0 additions & 151 deletions src/endpoints/quests/haiko/discord_fw_callback.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/endpoints/quests/haiko/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pub mod discord_fw_callback;
pub mod verify_deposit;
pub mod verify_twitter_fw;
pub mod verify_twitter_rw;
Expand Down
2 changes: 1 addition & 1 deletion src/endpoints/quests/haiko/verify_deposit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub async fn handler(
State(state): State<Arc<AppState>>,
Query(query): Query<VerifyQuery>,
) -> impl IntoResponse {
let task_id = 143;
let task_id = 142;
let addr = &query.addr;

let url = format!(
Expand Down
2 changes: 1 addition & 1 deletion src/endpoints/quests/haiko/verify_twitter_rw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub async fn handler(
State(state): State<Arc<AppState>>,
Query(query): Query<VerifyQuery>,
) -> impl IntoResponse {
let task_id = 144;
let task_id = 143;
match state.upsert_completed_task(query.addr, task_id).await {
Ok(_) => (StatusCode::OK, Json(json!({"res": true}))).into_response(),
Err(e) => get_error(format!("{}", e)),
Expand Down

0 comments on commit e191cca

Please sign in to comment.