Update get logs by user to pass user internal id
The userId in audit is actually the userInternalId.
This commit is contained in:
parent
187f3dc6ff
commit
9908a9021f
2 changed files with 2 additions and 2 deletions
|
@ -1427,7 +1427,7 @@ App::get('/v1/account/logs')
|
|||
|
||||
$audit = new EventAudit($dbForProject);
|
||||
|
||||
$logs = $audit->getLogsByUser($user->getId(), $limit, $offset);
|
||||
$logs = $audit->getLogsByUser($user->getInternalId(), $limit, $offset);
|
||||
|
||||
$output = [];
|
||||
|
||||
|
|
|
@ -577,7 +577,7 @@ App::get('/v1/users/:userId/logs')
|
|||
|
||||
$audit = new Audit($dbForProject);
|
||||
|
||||
$logs = $audit->getLogsByUser($user->getId(), $limit, $offset);
|
||||
$logs = $audit->getLogsByUser($user->getInternalId(), $limit, $offset);
|
||||
|
||||
$output = [];
|
||||
|
||||
|
|
Loading…
Reference in a new issue