mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-04-23 18:49:47 -05:00
fix: input in transformer (#3070)
This commit is contained in:
@@ -66,6 +66,11 @@ func ToCronWorkflowsFromSQLC(cron *sqlcv1.ListCronWorkflowsRow) *gen.CronWorkflo
|
||||
}
|
||||
}
|
||||
|
||||
input := make(map[string]interface{})
|
||||
if cron.Input != nil {
|
||||
json.Unmarshal(cron.Input, &input)
|
||||
}
|
||||
|
||||
res := &gen.CronWorkflows{
|
||||
Metadata: *toAPIMetadata(cron.ID_2, cron.CreatedAt_2.Time, cron.UpdatedAt_2.Time),
|
||||
WorkflowVersionId: cron.WorkflowVersionId.String(),
|
||||
@@ -78,6 +83,7 @@ func ToCronWorkflowsFromSQLC(cron *sqlcv1.ListCronWorkflowsRow) *gen.CronWorkflo
|
||||
Enabled: cron.Enabled,
|
||||
Method: gen.CronWorkflowsMethod(cron.Method),
|
||||
Priority: &cron.Priority,
|
||||
Input: &input,
|
||||
}
|
||||
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user