#1062 allow job submit API to use extra field instead of subaction
This commit is contained in:
@@ -357,7 +357,7 @@ sub jq_insert {
|
|||||||
die 'failed to find row for custom field update' unless $row;
|
die 'failed to find row for custom field update' unless $row;
|
||||||
|
|
||||||
$spec->{action} =~ s/^cf_//;
|
$spec->{action} =~ s/^cf_//;
|
||||||
$spec->{subaction} = to_json( $spec->{subaction} );
|
$spec->{subaction} = to_json( $spec->{extra} || $spec->{subaction} );
|
||||||
$row->make_column_dirty('custom_fields');
|
$row->make_column_dirty('custom_fields');
|
||||||
$row->update({
|
$row->update({
|
||||||
custom_fields => \['jsonb_set(custom_fields, ?, ?)'
|
custom_fields => \['jsonb_set(custom_fields, ?, ?)'
|
||||||
|
|||||||
Reference in New Issue
Block a user