pub async fn update_is_enabled<'a, E>(
executor: E,
company_id: i32,
id: i32,
is_enabled: bool,
) -> Result<()>Expand description
Update is_enabled field for agent by id.
ยงErrors
Returns error if agent with given id does not exist. Returns error if any error occurs while accessing database.