1
0

implemented update method via param binder

This commit is contained in:
konrad
2018-07-21 15:17:02 +02:00
committed by kolaente
parent 9e75e9b73b
commit 9979b7e321
12 changed files with 25 additions and 36 deletions

View File

@ -20,9 +20,7 @@ func CreateOrUpdateList(list *List) (err error) {
}
// Update implements the update method of CRUDable
func (l *List) Update(id int64) (err error) {
l.ID = id
func (l *List) Update() (err error) {
// Check if it exists
_, err = GetListByID(l.ID)
if err != nil {