Added new Endpoint
This commit is contained in:
parent
6ee1f502df
commit
5c212f8548
|
|
@ -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 = {
|
const initialState = {
|
||||||
userData: [],
|
userData: [],
|
||||||
branchBasedUserData: [],
|
branchBasedUserData: [],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue