feat: add user_id on response #483
This commit is contained in:
parent
beb6bbe7f8
commit
e2706446e6
|
@ -582,7 +582,8 @@ class REST_Reports_Controller extends REST_Controller {
|
|||
$total = $result->total;
|
||||
$action = $result->action;
|
||||
if(!isset($response[$user])) {
|
||||
$response[$user] = [
|
||||
$response[$user] = [
|
||||
'user_id' => $user,
|
||||
'total' => 0,
|
||||
'by_action' => []
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue