feat: set the updated at timestamp of tasks when updating their subtasks

This commit is contained in:
Matouš Volf
2024-09-09 18:50:52 +02:00
parent 9b8ef405c6
commit 253fb4f8e3
3 changed files with 45 additions and 16 deletions

View File

@ -53,6 +53,13 @@ impl From<diesel::result::Error> for SubtaskError {
}
}
impl From<ErrorVec<Error>> for ErrorVec<SubtaskError> {
fn from(error_vec: ErrorVec<Error>) -> Self {
Vec::from(error_vec).into_iter()
.map(SubtaskError::Error).collect::<Vec<SubtaskError>>().into()
}
}
// Has to be implemented for Dioxus server functions.
impl Display for SubtaskError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {