Fixed user status bug
This commit is contained in:
parent
2aefc93187
commit
061a8f4f9b
|
@ -2,10 +2,15 @@
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
* Upgraded core API PHP version to 7.4
|
||||||
* New database rule validation options
|
* New database rule validation options
|
||||||
* Update docs example with auth info
|
* Update docs example with auth info
|
||||||
* Allow non-web platform skip origin header
|
* 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)
|
# Version 0.4.0 (PRE-RELEASE)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
|
@ -346,7 +346,7 @@ $utopia->patch('/v1/users/:userId/status')
|
||||||
}
|
}
|
||||||
|
|
||||||
$user = $projectDB->updateDocument(array_merge($user->getArrayCopy(), [
|
$user = $projectDB->updateDocument(array_merge($user->getArrayCopy(), [
|
||||||
'status' => $status,
|
'status' => (int)$status,
|
||||||
]));
|
]));
|
||||||
|
|
||||||
if (false === $user) {
|
if (false === $user) {
|
||||||
|
|
Loading…
Reference in a new issue