fix: test

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 8c6a559188
commit e6ea71c95a

@ -102,9 +102,9 @@ async function getUsers(req, res) {
userData.forEach((user, index) => {
if (user) {
user.administrator = isAdmin[index];
const timestamp = lastonline[index] || userData.joindate;
const timestamp = lastonline[index] || user.joindate;
user.lastonline = timestamp;
user.lastonlineISO = utils.toISOString(lastonline);
user.lastonlineISO = utils.toISOString(timestamp);
}
});
return userData;

Loading…
Cancel
Save