Merge pull request #8083 from dokku/fix-cron-variable
fix: use correct variable for tasks
This commit is contained in:
@@ -80,7 +80,7 @@ func FetchCronTasks(input FetchCronTasksInput) ([]CronTask, error) {
|
|||||||
isMaintenance := reportComputedMaintenance(appName) == "true"
|
isMaintenance := reportComputedMaintenance(appName) == "true"
|
||||||
|
|
||||||
if input.AppJSON == nil && input.AppName == "" {
|
if input.AppJSON == nil && input.AppName == "" {
|
||||||
return commands, fmt.Errorf("Missing app name or app.json")
|
return tasks, fmt.Errorf("Missing app name or app.json")
|
||||||
}
|
}
|
||||||
|
|
||||||
if input.AppJSON == nil {
|
if input.AppJSON == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user