Don't try to get users for tasks if no tasks were found when looking for reminders

This commit is contained in:
kolaente 2021-02-07 14:46:47 +01:00
parent 18b35e1119
commit 9fe46f9a61
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

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)