Skip to content

Commit

Permalink
Merge pull request #304 from suhas-sensei/fix/add-missing-task-fields
Browse files Browse the repository at this point in the history
fix: add missing fields to UserTask struct
  • Loading branch information
Marchand-Nicolas authored Oct 28, 2024
2 parents 482e721 + a20389a commit dbb91ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/endpoints/get_tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ pub struct UserTask {
desc: String,
completed: bool,
quiz_name: Option<i64>,
// Add the missing fields
calls: Option<Vec<String>>,
contracts: Option<Vec<String>>,
api_url: Option<String>,
regex: Option<String>,
}

#[derive(Deserialize)]
Expand Down Expand Up @@ -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
}
},
];
Expand Down

0 comments on commit dbb91ee

Please sign in to comment.