From 6b2f6b3c22dc1578d65e3244b570e727fa66e0dd Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 25 Sep 2022 08:11:44 -0600 Subject: [PATCH] Update v1.1 api --- app/Http/Controllers/Api/ApiV1Dot1Controller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Api/ApiV1Dot1Controller.php b/app/Http/Controllers/Api/ApiV1Dot1Controller.php index 49c732549..48cac23bf 100644 --- a/app/Http/Controllers/Api/ApiV1Dot1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Dot1Controller.php @@ -392,11 +392,11 @@ class ApiV1Dot1Controller extends Controller return [ 'id' => $key + 1, 'did' => encrypt($token->id), - 'name' => $token->name, + 'name' => $token->client->name, 'scopes' => $token->scopes, 'revoked' => $token->revoked, - 'created_at' => $token->created_at, - 'expires_at' => $token->expires_at + 'created_at' => str_replace('@', 'at', now()->parse($token->created_at)->format('M j, Y @ g:i:s A')), + 'expires_at' => str_replace('@', 'at', now()->parse($token->expires_at)->format('M j, Y @ g:i:s A')) ]; });