1
0

Fix resetting the bucket limit

This commit is contained in:
kolaente
2021-01-31 12:40:02 +01:00
parent 2e88600c93
commit d69c799197
2 changed files with 49 additions and 1 deletions

View File

@ -191,7 +191,10 @@ func (b *Bucket) Create(s *xorm.Session, a web.Auth) (err error) {
// @Failure 500 {object} models.Message "Internal error"
// @Router /lists/{listID}/buckets/{bucketID} [post]
func (b *Bucket) Update(s *xorm.Session) (err error) {
_, err = s.Where("id = ?", b.ID).Update(b)
_, err = s.
Where("id = ?", b.ID).
Cols("title", "limit").
Update(b)
return
}