test the error codes on the task routes

This commit is contained in:
Tamo
2023-01-11 18:50:46 +01:00
parent 5c1a7c3b9a
commit 387874ea26
3 changed files with 501 additions and 0 deletions

View File

@ -270,6 +270,7 @@ pub struct TaskDateQueryRaw {
pub after_finished_at: Option<String>,
pub before_finished_at: Option<String>,
}
impl TaskDateQueryRaw {
fn validate(self) -> Result<TaskDateQuery, ResponseError> {
let Self {