Cleaned up old Attendees model. Updated tests.
This commit is contained in:
parent
64ce97c74d
commit
260e017f79
14 changed files with 90 additions and 584 deletions
|
|
@ -12,7 +12,6 @@ func (app *App) handleSyncPull(w http.ResponseWriter, r *http.Request) {
|
|||
since := r.URL.Query().Get("since")
|
||||
|
||||
event, _ := app.getEvent()
|
||||
attendees, _ := app.attendeesSince(since)
|
||||
participants, _ := app.listParticipants("", since)
|
||||
tickets, _ := app.listTickets(nil, since)
|
||||
departments, _ := app.listDepartments(since)
|
||||
|
|
@ -20,9 +19,6 @@ func (app *App) handleSyncPull(w http.ResponseWriter, r *http.Request) {
|
|||
shifts, _ := app.listShifts(nil, "", since)
|
||||
volunteerShifts, _ := app.listVolunteerShifts(since)
|
||||
|
||||
if attendees == nil {
|
||||
attendees = []Attendee{}
|
||||
}
|
||||
if participants == nil {
|
||||
participants = []Participant{}
|
||||
}
|
||||
|
|
@ -45,7 +41,6 @@ func (app *App) handleSyncPull(w http.ResponseWriter, r *http.Request) {
|
|||
writeJSON(w, map[string]any{
|
||||
"server_time": time.Now().UTC().Format("2006-01-02T15:04:05Z"),
|
||||
"event": event,
|
||||
"attendees": attendees,
|
||||
"participants": participants,
|
||||
"tickets": tickets,
|
||||
"departments": departments,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue