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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue