fix wrong event id

This commit is contained in:
Adrian Zürcher
2025-11-04 08:20:15 +01:00
parent 25f744b26c
commit 25f965cd72
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ func (dh *DatabaseHandler) AddAttendeesToEvent(newEvent models.Event) error {
}
var event models.Event
err := dh.database.GetById(&event, uint(event.Id))
err := dh.database.GetById(&event, uint(newEvent.Id))
if err != nil {
return err
}