Skip to content
Snippets Groups Projects
Unverified Commit c4158b97 authored by Johnny Chen's avatar Johnny Chen Committed by GitHub
Browse files

bugfix: API new user return 400 if user creation failed (#1898)


* return 400 if user creation failed

The client might not check the error field unless they realize it's a 4xx error instead of 200 success.

* Update index.js

* use one-liner style

---------

Co-authored-by: default avatarTimothy Carambat <rambat1010@gmail.com>
parent 5df6b5f7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment