Skip to content

Commit

Permalink
Site is JSON encoded
Browse files Browse the repository at this point in the history
  • Loading branch information
abeverley committed Jan 10, 2025
1 parent 2d18453 commit 3622ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Brass/ConfigDB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ sub _run_remote

my $decoded = decode_json $response->decoded_content;
error $decoded->{message} if $decoded->{is_error};
if ($action eq 'metadata' || $action eq 'summary') # double-encoded
if ($action eq 'metadata' || $action eq 'summary' || $type eq 'site') # double-encoded
{
return undef if !$decoded->{result}; # No metadata
return decode_json $decoded->{result};
Expand Down

0 comments on commit 3622ecb

Please sign in to comment.