fixed broken event-update query
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user