feat: add user_id on response #483

This commit is contained in:
vnmedeiros 2021-03-27 11:44:46 -03:00
parent beb6bbe7f8
commit e2706446e6
1 changed files with 2 additions and 1 deletions

View File

@ -583,6 +583,7 @@ class REST_Reports_Controller extends REST_Controller {
$action = $result->action;
if(!isset($response[$user])) {
$response[$user] = [
'user_id' => $user,
'total' => 0,
'by_action' => []
];