This commit is contained in:
prateek banga
2023-08-16 20:17:36 +05:30
parent c7dec3762b
commit e53f189b3b
+3 -3
View File
@@ -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([