fix: fix some code smell by adding const for variables

This commit is contained in:
Anton Georgiev 2023-03-28 13:25:59 -04:00
parent 440ba4f733
commit e654c390b7

View File

@ -43,9 +43,9 @@ export const getLoginTime = () => (Users.findOne({ userId: Auth.userID }) || {})
const generateTimeWindow = (timestamp) => {
const groupingTime = getGroupingTime();
dateInMilliseconds = Math.floor(timestamp);
groupIndex = Math.floor(dateInMilliseconds / groupingTime)
date = groupIndex * 30000;
const dateInMilliseconds = Math.floor(timestamp);
const groupIndex = Math.floor(dateInMilliseconds / groupingTime)
const date = groupIndex * 30000;
return date;
}