Don't try to get users for tasks if no tasks were found when looking for reminders
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2021-02-07 14:46:47 +01:00
parent 18b35e1119
commit 9fe46f9a61
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 0 deletions

View File

@ -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)