Merge pull request #340 from fwatteau/master

The Metrics data are updatables by rest api
This commit is contained in:
Brian Miyaji
2020-08-06 13:15:40 +10:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ class SP_Player extends SP_Custom_Post {
$metric = sp_array_value( $metrics, $key, null );
if ( $metric == null )
continue;
$data[ $value ] = sp_array_value( $metrics, $key, ' ' );
$data[ $key ] = sp_array_value( $metrics, $key, ' ' );
endforeach;
return $data;
}