forked from vikunja/vikunja
Don't try to get users for tasks if no tasks were found when looking for reminders
This commit is contained in:
parent
18b35e1119
commit
9fe46f9a61
@ -155,6 +155,10 @@ func RegisterReminderCron() {
|
||||
return
|
||||
}
|
||||
|
||||
if len(taskIDs) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
users, err := getTaskUsersForTasks(s, taskIDs)
|
||||
if err != nil {
|
||||
log.Errorf("[Task Reminder Cron] Could not get task users to send them reminders: %s", err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user