Skip to content

Commit

Permalink
Encode also for regions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-suse authored Aug 9, 2024
1 parent a4cea5a commit e3ae561
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/MirrorCache/WebAPI/Plugin/ReportMirror.pm
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ sub _list_geo_from_db {
my $sql = 'select dt, body, tag from report_body where report_id = 1 and tag = ? order by dt desc limit 1';
my @res = $c->schema->storage->dbh->selectrow_array($sql, {}, 'local');
my $body = $res[1];
$body = encode('UTF-8',$body) unless $c->schema->pg;
my $report = decode_json($body);
my @report = @$report;
my %regions_res;
Expand Down

0 comments on commit e3ae561

Please sign in to comment.