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