diff --git a/lib/App/Netdisco/JobQueue/PostgreSQL.pm b/lib/App/Netdisco/JobQueue/PostgreSQL.pm index f679b68b..d0c0626a 100644 --- a/lib/App/Netdisco/JobQueue/PostgreSQL.pm +++ b/lib/App/Netdisco/JobQueue/PostgreSQL.pm @@ -357,7 +357,7 @@ sub jq_insert { die 'failed to find row for custom field update' unless $row; $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->update({ custom_fields => \['jsonb_set(custom_fields, ?, ?)'