1
0
Fork 0
mirror of synced 2024-05-20 20:52:36 +12:00

Fixed user status bug

This commit is contained in:
Eldad Fux 2019-12-12 18:40:01 +02:00
parent 2aefc93187
commit 061a8f4f9b
2 changed files with 6 additions and 1 deletions

View file

@ -2,10 +2,15 @@
## Features
* Upgraded core API PHP version to 7.4
* New database rule validation options
* Update docs example with auth info
* Allow non-web platform skip origin header
## Bug Fixes
* Fixed bug where user status was saved as a string instead of an integer
# Version 0.4.0 (PRE-RELEASE)
## Features

View file

@ -346,7 +346,7 @@ $utopia->patch('/v1/users/:userId/status')
}
$user = $projectDB->updateDocument(array_merge($user->getArrayCopy(), [
'status' => $status,
'status' => (int)$status,
]));
if (false === $user) {