validate_task_exists

Function validate_task_exists 

Source
pub async fn validate_task_exists(pool: &SqlitePool, uuid: &Uuid) -> Result<()>
Expand description

Validate that a task exists and is not trashed

ยงErrors

Returns an error if the task does not exist, is trashed, or if the database query fails