fix: do not try to reindex tasks into typesense when it is not set up

This commit is contained in:
kolaente
2024-10-10 16:01:17 +02:00
parent ab03a8bb2c
commit 8ab387396d

View File

@@ -285,6 +285,10 @@ func getTypesenseTaskForTask(s *xorm.Session, task *Task, projectsCache map[int6
func reindexTasksInTypesense(s *xorm.Session, tasks map[int64]*Task) (err error) {
if !config.TypesenseEnabled.GetBool() {
return
}
if len(tasks) == 0 {
log.Infof("No tasks to index")
return