login select response completed tested
This commit is contained in:
@@ -44,10 +44,8 @@ const setActiveSelectionToRedis = async (selectionObject: any) => {
|
||||
}
|
||||
})
|
||||
if (oldData.online.userType.toUpperCase() === "EMPLOYEE") {
|
||||
console.log("selectionObject", selectionObject)
|
||||
await loginSelectEmployee({ uuid: selectionObject.uu_id });
|
||||
} else if (oldData.online.userType.toUpperCase() === "OCCUPANT") {
|
||||
console.log("selectionObject", selectionObject.build_living_space_uu_id)
|
||||
await loginSelectOccupant({ uuid: selectionObject.build_living_space_uu_id });
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -60,7 +60,6 @@ async function initRedis(loginRespone: any, firstSelection: any, accessToken: st
|
||||
async function initFirstSelection(firstSelection: any, userType: string) {
|
||||
if (userType === "EMPLOYEE") {
|
||||
const uuid = firstSelection.uu_id;
|
||||
console.log("uuid", uuid)
|
||||
await loginSelectEmployee({ uuid });
|
||||
} else if (userType === "OCCUPANT") {
|
||||
const uuid = firstSelection.build_living_space_uu_id;
|
||||
|
||||
Reference in New Issue
Block a user