Skip to content

Commit

Permalink
override expire_after_minutes on saved definition with flow setting
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed Apr 21, 2019
1 parent 5f81246 commit 3655e38
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions models/flows.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,11 @@ SELECT ROW_TO_JSON(r) FROM (SELECT
definition::jsonb ||
jsonb_build_object(
'flow_type', f.flow_type,
'expire_after_minutes', f.expires_after_minutes,
'metadata', jsonb_build_object(
'uuid', f.uuid,
'id', f.id,
'name', f.name,
'name', f.name,
'revision', revision,
'expires', f.expires_after_minutes
)
Expand Down Expand Up @@ -227,11 +228,12 @@ SELECT ROW_TO_JSON(r) FROM (SELECT
definition::jsonb ||
jsonb_build_object(
'flow_type', f.flow_type,
'expire_after_minutes', f.expires_after_minutes,
'metadata', jsonb_build_object(
'uuid', f.uuid,
'id', f.id,
'name', f.name,
'revision', revision,
'name', f.name,
'revision', revision,
'expires', f.expires_after_minutes
)
) as definition
Expand Down

0 comments on commit 3655e38

Please sign in to comment.