Skip to content

Commit

Permalink
Merge pull request #179 from starknet-id/ayush/error-message-fix
Browse files Browse the repository at this point in the history
feat: add correct data type
  • Loading branch information
Th0rgal authored Jan 19, 2024
2 parents 4bc8fb9 + 34fb856 commit a370ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endpoints/quest_boost/get_completed_boosts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub async fn handler(
Ok(mut cursor) => {
let mut boosts: Vec<u32> = Vec::new();
while let Some(result) = cursor.try_next().await.unwrap() {
boosts.push(result.get("id").unwrap().as_i64().unwrap() as u32);
boosts.push(result.get("id").unwrap().as_i32().unwrap() as u32);
}
(StatusCode::OK, Json(boosts)).into_response()
}
Expand Down

0 comments on commit a370ca5

Please sign in to comment.