From db9faebcc9c28f3b57717265abbcd190677f7ac8 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 18 Aug 2022 16:04:19 +0545 Subject: [PATCH] Update app/controllers/api/account.php Co-authored-by: Christy Jacob --- app/controllers/api/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 45e55b3a5b..06c586e12d 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1231,7 +1231,7 @@ App::get('/v1/account') ->inject('user') ->action(function (Response $response, Document $user) { - $response->dynamic($user, Response::MODEL_USER); + $response->dynamic($user, Response::MODEL_ACCOUNT); }); App::get('/v1/account/prefs')