Fixed user status bug
This commit is contained in:
parent
2aefc93187
commit
061a8f4f9b
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue