1
0
Fork 0

fix(server): list training date attendees returns correct object

This commit is contained in:
Vojtěch Mareš 2024-05-19 10:07:22 +02:00
parent e4992b4352
commit 21480e9242
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

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