updated loginSelectEmployee and loginSelectOccupant
This commit is contained in:
parent
57c2696bcb
commit
658a26a123
|
|
@ -158,13 +158,12 @@ async function loginViaAccessKeys(payload: LoginViaAccessKeys) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function loginSelectEmployee(payload: LoginSelect) {
|
async function loginSelectEmployee(payload: LoginSelect) {
|
||||||
console.log("payload", payload)
|
|
||||||
const employeeUUID = payload.uuid;
|
const employeeUUID = payload.uuid;
|
||||||
const selectResponse: any = await fetchDataWithToken(urlLoginSelectEndpoint, { uuid: employeeUUID }, "POST", false);
|
const selectResponse: any = await fetchDataWithToken(urlLoginSelectEndpoint, { uuid: employeeUUID }, "POST", false);
|
||||||
console.log("selectResponse", selectResponse)
|
|
||||||
if (selectResponse.status === 200 || selectResponse.status === 202) {
|
if (selectResponse.status === 200 || selectResponse.status === 202) {
|
||||||
try {
|
try {
|
||||||
console.log("selectResponse", selectResponse)
|
console.log("selectResponse", selectResponse)
|
||||||
|
// Get Menu URL's of Employee
|
||||||
} catch (error) { }
|
} catch (error) { }
|
||||||
}
|
}
|
||||||
return selectResponse;
|
return selectResponse;
|
||||||
|
|
@ -173,10 +172,10 @@ async function loginSelectEmployee(payload: LoginSelect) {
|
||||||
async function loginSelectOccupant(payload: LoginSelect) {
|
async function loginSelectOccupant(payload: LoginSelect) {
|
||||||
const livingSpaceUUID = payload.uuid;
|
const livingSpaceUUID = payload.uuid;
|
||||||
const selectResponse: any = await fetchDataWithToken(urlLoginSelectEndpoint, { uuid: livingSpaceUUID }, "POST", false);
|
const selectResponse: any = await fetchDataWithToken(urlLoginSelectEndpoint, { uuid: livingSpaceUUID }, "POST", false);
|
||||||
console.log("selectResponse", selectResponse)
|
|
||||||
if (selectResponse.status === 200 || selectResponse.status === 202) {
|
if (selectResponse.status === 200 || selectResponse.status === 202) {
|
||||||
try {
|
try {
|
||||||
console.log("selectResponse", selectResponse)
|
console.log("selectResponse", selectResponse)
|
||||||
|
// Get Menu URL's of Occupant
|
||||||
} catch (error) { }
|
} catch (error) { }
|
||||||
}
|
}
|
||||||
return selectResponse;
|
return selectResponse;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue