Skip to content

Commit

Permalink
Merge pull request #186 from starknet-id/fix/briq_achievement
Browse files Browse the repository at this point in the history
fix: briq achievement
  • Loading branch information
Th0rgal authored Jan 25, 2024
2 parents c85e7af + 9ab0500 commit 2eb792d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/endpoints/achievements/verify_briq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub async fn handler(
Ok(Some(_)) => (StatusCode::OK, Json(json!({"achieved": true}))).into_response(),
Ok(None) => {
let url = format!(
"https://api.briq.construction/v1/user/data/starknet-mainnet/{}",
"https://api.briq.construction/v1/user/data/starknet-mainnet-dojo/{}",
to_hex(addr)
);
match fetch_json_from_url(url).await {
Expand All @@ -57,7 +57,7 @@ pub async fn handler(
for set in sets_array.iter() {
if let serde_json::Value::String(set_str) = set {
let url = format!(
"https://api.briq.construction/v1/metadata/starknet-mainnet/{}",
"https://api.briq.construction/v1/metadata/starknet-mainnet-dojo/{}",
set_str
);
match fetch_json_from_url(url).await {
Expand Down
4 changes: 2 additions & 2 deletions src/endpoints/quests/element/briq/verify_own_briq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub async fn handler(
}

let url = format!(
"https://api.briq.construction/v1/user/data/starknet-mainnet/{}",
"https://api.briq.construction/v1/user/data/starknet-mainnet-dojo/{}",
to_hex(query.addr)
);
match fetch_json_from_url(url).await {
Expand All @@ -41,7 +41,7 @@ pub async fn handler(
for set in sets_array.iter() {
if let serde_json::Value::String(set_str) = set {
let url = format!(
"https://api.briq.construction/v1/metadata/starknet-mainnet/{}",
"https://api.briq.construction/v1/metadata/starknet-mainnet-dojo/{}",
set_str
);
match fetch_json_from_url(url).await {
Expand Down

0 comments on commit 2eb792d

Please sign in to comment.