This commit is contained in:
kandrusyak
2023-09-25 22:53:26 +03:00
parent 20f69b4378
commit 48d7206356
3 changed files with 14 additions and 14 deletions

View File

@@ -73,7 +73,7 @@ func (h *Handler) CreateEvent(c echo.Context) (err error) {
newEvent.MedicId = event.MedicId
newEvent.AuthorId = authorId
newEvent.PersonId = person.ID
newEvent.Person = person
newEvent.Person = *person
tx := h.DB.Create(&newEvent)