anything-llm/server/endpoints/api/admin
Johnny Chen c4158b97d6
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: Timothy Carambat <rambat1010@gmail.com>
2024-07-19 15:27:21 -07:00
..
index.js bugfix: API new user return 400 if user creation failed (#1898) 2024-07-19 15:27:21 -07:00