fix(server): list training date attendees returns correct object
This commit is contained in:
parent
e4992b4352
commit
21480e9242
1 changed files with 13 additions and 2 deletions
|
|
@ -519,8 +519,19 @@ func (h *APIHandlers) ListTrainingDateAttendees(ctx context.Context, req ListTra
|
|||
data := make([]TrainingDateAttendee, len(attendees))
|
||||
for idx, a := range attendees {
|
||||
data[idx] = TrainingDateAttendee{
|
||||
Id: a.ID,
|
||||
Name: a.Name,
|
||||
Id: a.ID,
|
||||
Name: a.Name,
|
||||
Email: types.Email(a.Email),
|
||||
Phone: a.Phone,
|
||||
Company: a.Company,
|
||||
Position: a.Position,
|
||||
IsStudent: &a.IsStudent,
|
||||
HasPaid: a.HasPaid,
|
||||
HasAttended: a.HasAttended,
|
||||
Bill: Price{
|
||||
Amount: a.Bill.Amount.String(),
|
||||
Currency: a.Bill.Currency,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue