From c13af95419a455160ae45ee92b2bffb90f663393 Mon Sep 17 00:00:00 2001 From: Pierre G Date: Mon, 22 Apr 2024 16:08:57 +0200 Subject: [PATCH] feat: adapt to last open api (#269) --- cmd/cronjob_list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cronjob_list.go b/cmd/cronjob_list.go index 040e6cc1..ebc908e4 100644 --- a/cmd/cronjob_list.go +++ b/cmd/cronjob_list.go @@ -77,7 +77,7 @@ func getCronjobJsonOutput(statuses []qovery.Status, cronjobs []qovery.JobRespons var results []interface{} for _, cronjob := range cronjobs { - if cronjob.CronJobResponse.Schedule.Cronjob != nil { + if cronjob.CronJobResponse != nil { results = append(results, map[string]interface{}{ "id": cronjob.CronJobResponse.Id, "name": cronjob.CronJobResponse.Name,