Skip to main content

save

Function save 

Source
pub async fn save(
    state: &AppState,
    team_id: FantasyTeamId,
    slate_id: SlateId,
) -> Result<EntryId, AppError>
Expand description

Commit the draft as a real entry: upsert the entries row, replace its nine entry_slots, and delete the draft row. Refuses when the lineup is incomplete or over the salary cap.