fix: fix some code smell by adding const for variables
This commit is contained in:
parent
440ba4f733
commit
e654c390b7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user