diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index d85f1a8de0..ae5273ded2 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -3080,6 +3080,11 @@ App::patch('/v1/account/prefs') ->inject('queueForEvents') ->action(function (array $prefs, ?\DateTime $requestTimestamp, Response $response, Document $user, Database $dbForProject, Event $queueForEvents) { + var_dump([ + 'userId' => $user->getId(), + 'account:setPrefs' => $prefs, + ]); + $user->setAttribute('prefs', $prefs); $user = $dbForProject->withRequestTimestamp($requestTimestamp, fn () => $dbForProject->updateDocument('users', $user->getId(), $user)); diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index 4a551b7478..22fffa6df1 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -1556,7 +1556,10 @@ App::patch('/v1/users/:userId/prefs') if ($user->isEmpty()) { throw new Exception(Exception::USER_NOT_FOUND); } - + var_dump([ + 'userId' => $user->getId(), + 'user:setPrefs' => $prefs, + ]); $user = $dbForProject->updateDocument('users', $user->getId(), $user->setAttribute('prefs', $prefs)); $queueForEvents