From 404963e16291bf3e92d1feeabb69783f72074536 Mon Sep 17 00:00:00 2001 From: Sandeep chauhan <92181599+ryzen-xp@users.noreply.github.com> Date: Thu, 24 Oct 2024 00:42:48 +0530 Subject: [PATCH] Fix : #287 create_boost.rs 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). --- src/endpoints/admin/quest_boost/create_boost.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/admin/quest_boost/create_boost.rs b/src/endpoints/admin/quest_boost/create_boost.rs index c9594760..c79ed936 100644 --- a/src/endpoints/admin/quest_boost/create_boost.rs +++ b/src/endpoints/admin/quest_boost/create_boost.rs @@ -35,7 +35,7 @@ pub async fn handler( ) -> impl IntoResponse { let collection = state.db.collection::("boosts"); let quests_collection = state.db.collection::("quests"); - let insert_collection = state.db.collection::("quests"); + let insert_collection = state.db.collection::("tasks"); let res = verify_quest_auth(sub, &quests_collection, &(body.quest_id as i64)).await; if !res {