Fixed removing reminders

This commit is contained in:
kolaente 2019-11-24 16:13:16 +01:00
parent dcec9511dc
commit 37efd5cb49
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -788,7 +788,7 @@ func (t *Task) updateReminders(reminders []int64) (err error) {
if len(remindersToDelete) > 0 { if len(remindersToDelete) > 0 {
_, err = x.In("reminder_unix", remindersToDelete). _, err = x.In("reminder_unix", remindersToDelete).
And("task_id = ?", t.ID). And("task_id = ?", t.ID).
Delete(TaskAssginee{}) Delete(TaskReminder{})
if err != nil { if err != nil {
return err return err
} }