Skip to main content

validate_task_exists

Function validate_task_exists 

Source
pub async fn validate_task_exists(
    pool: &SqlitePool,
    id: &ThingsId,
) -> 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