Added new Endpoint

This commit is contained in:
Srinath 2026-03-16 15:10:46 +05:30
parent 6ee1f502df
commit 5c212f8548
1 changed files with 9 additions and 0 deletions

View File

@ -25,6 +25,15 @@ export const getBranchBasedUserList = createAsyncThunk(
}
);
export const getBranchUsers = createAsyncThunk(
'user/getBranchUsers',
async (data) => {
if (data?.branchId != null && data?.branchId != undefined && data?.compId != null && data?.compId != undefined && data?.appId != null && data?.appId != undefined) {
return await axiosCommonInstanceData.get(`/User?branchId=${data?.branchId}&compId=${data?.compId}&appId=${data?.appId}&userType=UE`);
}
}
);
const initialState = {
userData: [],
branchBasedUserData: [],