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 } }, ];