fixed broken event-update query

This commit is contained in:
z1glr
2025-01-29 22:22:46 +00:00
parent 6d38048e67
commit 402efd7de9

View File

@@ -161,7 +161,7 @@ func Create(event EventCreate) error {
func Update(event EventPatch) error { func Update(event EventPatch) error {
// update the event itself // update the event itself
if _, err := db.DB.NamedExec("UPDATE EVENTS SET description = :description, date = :date WHERE eventID = :id", event); err != nil { if _, err := db.DB.NamedExec("UPDATE EVENTS SET description = :description, date = :date WHERE eventID = :eventID", event); err != nil {
return err return err
// get the tasks currently assigned to the event // get the tasks currently assigned to the event