Set co-leads to confirmed automatically, and updated test and documents.

This commit is contained in:
Pen Anderson 2026-03-05 16:51:39 -06:00
parent ab3d9a0409
commit cc4dd76438
3 changed files with 151 additions and 6 deletions

View file

@ -109,6 +109,10 @@ func (app *App) handleUpdateVolunteer(w http.ResponseWriter, r *http.Request) {
writeError(w, err.Error(), http.StatusInternalServerError)
return
}
if v.IsLead {
app.confirmVolunteer(id)
}
updated, _ := app.getVolunteer(id)
writeJSON(w, updated)
}