diff --git a/app/Containers/AppSection/User/UI/API/Routes/_user.v1.public.php b/app/Containers/AppSection/User/UI/API/Routes/_user.v1.public.php index 6f1686e62..b5114f16a 100644 --- a/app/Containers/AppSection/User/UI/API/Routes/_user.v1.public.php +++ b/app/Containers/AppSection/User/UI/API/Routes/_user.v1.public.php @@ -12,11 +12,7 @@ "email": "mohammad.alavi1990@gmail.com", "email_verified_at": "2021-04-07T07:59:47.000000Z", "gender": "male", - "birth": "1990-01-06T00:00:00.000000Z", - "created_at": "2021-03-24T13:03:48.000000Z", - "updated_at": "2021-03-24T13:05:11.000000Z", - "readable_created_at": "3 minutes ago", - "readable_updated_at": "1 minute ago" + "birth": "1990-01-06T00:00:00.000000Z" }, "meta": { "include": [ diff --git a/app/Containers/AppSection/User/UI/API/Transformers/UserTransformer.php b/app/Containers/AppSection/User/UI/API/Transformers/UserTransformer.php index 470646088..d764514f2 100644 --- a/app/Containers/AppSection/User/UI/API/Transformers/UserTransformer.php +++ b/app/Containers/AppSection/User/UI/API/Transformers/UserTransformer.php @@ -27,14 +27,14 @@ public function transform(User $user): array 'email_verified_at' => $user->email_verified_at, 'gender' => $user->gender, 'birth' => $user->birth, - 'created_at' => $user->created_at, - 'updated_at' => $user->updated_at, - 'readable_created_at' => $user->created_at->diffForHumans(), - 'readable_updated_at' => $user->updated_at->diffForHumans(), ]; return $this->ifAdmin([ 'real_id' => $user->id, + 'created_at' => $user->created_at, + 'updated_at' => $user->updated_at, + 'readable_created_at' => $user->created_at->diffForHumans(), + 'readable_updated_at' => $user->updated_at->diffForHumans(), ], $response); }