Skip to content

Commit

Permalink
Fix : #287 create_boost.rs
Browse files Browse the repository at this point in the history
In src/endpoints/admin/quest_boost/create_boost.rs, line 38, 
I remove "quests "  and replace with "tasks" . (Because we already get the quests collection on the upper line).
  • Loading branch information
ryzen-xp authored Oct 23, 2024
1 parent 09d2f0b commit 404963e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endpoints/admin/quest_boost/create_boost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub async fn handler(
) -> impl IntoResponse {
let collection = state.db.collection::<BoostTable>("boosts");
let quests_collection = state.db.collection::<QuestDocument>("quests");
let insert_collection = state.db.collection::<QuestTaskDocument>("quests");
let insert_collection = state.db.collection::<QuestTaskDocument>("tasks");

let res = verify_quest_auth(sub, &quests_collection, &(body.quest_id as i64)).await;
if !res {
Expand Down

0 comments on commit 404963e

Please sign in to comment.