Established Participants and Tickets model. Migrated concepts.
This commit is contained in:
parent
0df93e1886
commit
cd8e1e3b3b
22 changed files with 1345 additions and 191 deletions
|
|
@ -13,6 +13,8 @@ func (app *App) handleSyncPull(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
event, _ := app.getEvent()
|
||||
attendees, _ := app.attendeesSince(since)
|
||||
participants, _ := app.listParticipants("", since)
|
||||
tickets, _ := app.listTickets(nil, since)
|
||||
departments, _ := app.listDepartments(since)
|
||||
volunteers, _ := app.listVolunteers("", nil, since)
|
||||
shifts, _ := app.listShifts(nil, "", since)
|
||||
|
|
@ -21,6 +23,12 @@ func (app *App) handleSyncPull(w http.ResponseWriter, r *http.Request) {
|
|||
if attendees == nil {
|
||||
attendees = []Attendee{}
|
||||
}
|
||||
if participants == nil {
|
||||
participants = []Participant{}
|
||||
}
|
||||
if tickets == nil {
|
||||
tickets = []Ticket{}
|
||||
}
|
||||
if departments == nil {
|
||||
departments = []Department{}
|
||||
}
|
||||
|
|
@ -38,6 +46,8 @@ func (app *App) handleSyncPull(w http.ResponseWriter, r *http.Request) {
|
|||
"server_time": time.Now().UTC().Format("2006-01-02T15:04:05Z"),
|
||||
"event": event,
|
||||
"attendees": attendees,
|
||||
"participants": participants,
|
||||
"tickets": tickets,
|
||||
"departments": departments,
|
||||
"volunteers": volunteers,
|
||||
"shifts": shifts,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue