Fix favorite tasks not being updated
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
c5dc1f91e2
commit
f2e4d3c516
|
@ -790,6 +790,7 @@ func (t *Task) Update() (err error) {
|
|||
"bucket_id",
|
||||
"position",
|
||||
"repeat_from_current_date",
|
||||
"is_favorite",
|
||||
}
|
||||
|
||||
// Make sure we have a bucket
|
||||
|
@ -898,6 +899,10 @@ func (t *Task) Update() (err error) {
|
|||
if !t.RepeatFromCurrentDate {
|
||||
ot.RepeatFromCurrentDate = false
|
||||
}
|
||||
// Is Favorite
|
||||
if !t.IsFavorite {
|
||||
ot.IsFavorite = false
|
||||
}
|
||||
|
||||
_, err = s.ID(t.ID).
|
||||
Cols(colsToUpdate...).
|
||||
|
|
Loading…
Reference in New Issue