Skip to main content

apply

Function apply 

Source
pub(super) fn apply(
    state: &AppState,
    item: &WorkItem,
    agent: &str,
    uid: &str,
    call: &MediaCall,
) -> Result<Vec<MediaItem>, (StatusCode, Json<Value>)>
Expand description

Attach the files of a call to a task and set its flag. Every file is checked before anything changes, so a bad one fails the call whole. Returns what was attached.