pub async fn get<'a, E: Executor<'a, Database = Postgres>>( executor: E, company_id: i32, id: i32, ) -> Result<Task>
Get task by id.
Returns error if there was a problem while fetching task.