Skip to content

Commit

Permalink
Merge branch 'master' into feat/add_braavos_quests
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed Oct 4, 2023
2 parents 0483f1b + 93c1a0d commit 4d3c8fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/endpoints/achievements/verify_whitelisted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/endpoints/get_completed_quests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ pub async fn handler(
let tasks_collection = state.db.collection::<Document>("completed_tasks");
match tasks_collection.aggregate(pipeline, None).await {
Ok(mut cursor) => {
let mut quests: Vec<Document> = Vec::new();
let mut quests: Vec<u32> = 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()
}
Expand Down

0 comments on commit 4d3c8fd

Please sign in to comment.