From d492162b20653a6d2bfc1532e5331d600cda265b Mon Sep 17 00:00:00 2001 From: nicolasito1411 <60229704+Marchand-Nicolas@users.noreply.github.com> Date: Mon, 2 Oct 2023 20:04:30 +0200 Subject: [PATCH 1/2] fix: get_completed_quests output format --- src/endpoints/get_completed_quests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/endpoints/get_completed_quests.rs b/src/endpoints/get_completed_quests.rs index fd2efb73..28214e53 100644 --- a/src/endpoints/get_completed_quests.rs +++ b/src/endpoints/get_completed_quests.rs @@ -78,9 +78,9 @@ pub async fn handler( let tasks_collection = state.db.collection::("completed_tasks"); match tasks_collection.aggregate(pipeline, None).await { Ok(mut cursor) => { - let mut quests: Vec = Vec::new(); + let mut quests: Vec = Vec::new(); while let Some(result) = cursor.try_next().await.unwrap() { - quests.push(result); + quests.push(result.get("quest_id").unwrap().as_i32().unwrap() as u32); } (StatusCode::OK, Json(quests)).into_response() } From 096abf3ac2fbca32bffcf1cac7f96977655b62fe Mon Sep 17 00:00:00 2001 From: Iris Date: Tue, 3 Oct 2023 17:21:18 +0200 Subject: [PATCH 2/2] fix: typo --- src/endpoints/achievements/verify_whitelisted.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/achievements/verify_whitelisted.rs b/src/endpoints/achievements/verify_whitelisted.rs index 929cedf3..54e2d531 100644 --- a/src/endpoints/achievements/verify_whitelisted.rs +++ b/src/endpoints/achievements/verify_whitelisted.rs @@ -2,7 +2,7 @@ use crate::models::Nft; pub fn is_braavos_whitelisted(nft: &Nft) -> bool { let whitelist = vec![ - "Starknet Onboarding Journey", + "Starknet Onboarding Journey NFT", "Starknet Identity Journey", "Starknet Exchange Journey", "Starknet Mobile Journey",