From e53f189b3b455f71873d752a4010ede92bc2a0fb Mon Sep 17 00:00:00 2001 From: prateek banga Date: Wed, 16 Aug 2023 20:17:36 +0530 Subject: [PATCH] lint fix --- app/controllers/api/users.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index adc02a3b02..c1b664ca26 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -483,7 +483,7 @@ App::get('/v1/users/:userId/targets/:targetId') if ($user->isEmpty()) { throw new Exception(Exception::USER_NOT_FOUND); } - + $target = $user->find('$id', $targetId, 'targets'); if (empty($target)) { @@ -491,7 +491,7 @@ App::get('/v1/users/:userId/targets/:targetId') } $response->dynamic($target, Response::MODEL_TARGET); - }); + }); App::get('/v1/users/:userId/sessions') ->desc('List User Sessions') @@ -675,7 +675,7 @@ App::get('/v1/users/:userId/targets') if ($user->isEmpty()) { throw new Exception(Exception::USER_NOT_FOUND); } - + $targets = $user->getAttribute('targets', []); var_dump($user); $response->dynamic(new Document([