Renamed id to asuraId
This commit is contained in:
parent
8f78f3672e
commit
52514e9e68
|
@ -466,6 +466,8 @@ function getUsers () {
|
||||||
userRows.forEach((userRow, index) => {
|
userRows.forEach((userRow, index) => {
|
||||||
let user = results=JSON.parse(JSON.stringify(userRow))
|
let user = results=JSON.parse(JSON.stringify(userRow))
|
||||||
user.isManager = user.isManager == 1;
|
user.isManager = user.isManager == 1;
|
||||||
|
user.asuraId = user.id;
|
||||||
|
user.id = undefined;
|
||||||
users.push(user);
|
users.push(user);
|
||||||
});
|
});
|
||||||
resolve(users);
|
resolve(users);
|
||||||
|
@ -485,6 +487,8 @@ function getUserByGoogleId(googleId) {
|
||||||
reject("No such user exists");
|
reject("No such user exists");
|
||||||
}
|
}
|
||||||
users[0].isManager = users[0].isManager == 1;
|
users[0].isManager = users[0].isManager == 1;
|
||||||
|
users[0].asuraId = users[0].id;
|
||||||
|
users[0].id = undefined;
|
||||||
resolve(users[0]);
|
resolve(users[0]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -503,6 +507,8 @@ function getUserByEmail(email) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
users[0].isManager = users[0].isManager == 1;
|
users[0].isManager = users[0].isManager == 1;
|
||||||
|
users[0].asuraId = users[0].id;
|
||||||
|
users[0].id = undefined;
|
||||||
resolve(users[0]);
|
resolve(users[0]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue