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
|
|
@ -521,6 +521,17 @@ func (h *APIHandlers) ListTrainingDateAttendees(ctx context.Context, req ListTra
|
||||||
data[idx] = TrainingDateAttendee{
|
data[idx] = TrainingDateAttendee{
|
||||||
Id: a.ID,
|
Id: a.ID,
|
||||||
Name: a.Name,
|
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