Fixed a bug where updating a list would update it with the same values it had before
This commit is contained in:
@ -69,10 +69,10 @@ func CreateOrUpdateList(list *List) (err error) {
|
||||
// @Router /lists/{id} [post]
|
||||
func (l *List) Update() (err error) {
|
||||
// Check if it exists
|
||||
if err = l.GetSimpleByID(); err != nil {
|
||||
lorig := List{ID: l.ID}
|
||||
if err = lorig.GetSimpleByID(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
return CreateOrUpdateList(l)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user