mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-19 03:56:42 +08:00
Unified API response json schema (#3170)
### What problem does this PR solve? Unified API response json schema ### Type of change - [x] Refactoring
This commit is contained in:
@ -17,8 +17,8 @@ export const useAddUser = () => {
|
||||
|
||||
const handleAddUserOk = useCallback(
|
||||
async (email: string) => {
|
||||
const retcode = await addTenantUser(email);
|
||||
if (retcode === 0) {
|
||||
const code = await addTenantUser(email);
|
||||
if (code === 0) {
|
||||
hideAddingTenantModal();
|
||||
}
|
||||
},
|
||||
@ -40,8 +40,8 @@ export const useHandleDeleteUser = () => {
|
||||
const handleDeleteTenantUser = (userId: string) => () => {
|
||||
showDeleteConfirm({
|
||||
onOk: async () => {
|
||||
const retcode = await deleteTenantUser({ userId });
|
||||
if (retcode === 0) {
|
||||
const code = await deleteTenantUser({ userId });
|
||||
if (code === 0) {
|
||||
}
|
||||
return;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user