From a20389a107cc091bef413638bd031a08aeac453d Mon Sep 17 00:00:00 2001 From: Suhas Ghosal Date: Mon, 28 Oct 2024 04:53:12 +0530 Subject: [PATCH] fix: add missing fields to UserTask struct --- src/endpoints/get_tasks.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/endpoints/get_tasks.rs b/src/endpoints/get_tasks.rs index d98c834..c311e07 100644 --- a/src/endpoints/get_tasks.rs +++ b/src/endpoints/get_tasks.rs @@ -24,6 +24,11 @@ pub struct UserTask { desc: String, completed: bool, quiz_name: Option, + // Add the missing fields + calls: Option>, + contracts: Option>, + api_url: Option, + regex: Option, } #[derive(Deserialize)] @@ -99,6 +104,10 @@ pub async fn handler( "desc": 1, "completed": { "$gt": [ { "$size": "$completed" }, 0 ] }, "quiz_name": 1, + "calls": 1, + "contracts": 1, + "api_url": 1, + "regex": 1 } }, ];