Function assign

Source
pub async fn assign<'a, E: Executor<'a, Database = Postgres>>(
    executor: E,
    company_id: i32,
    task_id: i32,
    agent_id: i32,
) -> Result<()>
Expand description

Assigns tasks to agent by id.

ยงErrors

Returns error if there was a problem while assigning tasks to agent.