Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule
Reenable eslint `prefer-const` rule GitOrigin-RevId: 4f3825be8b8dff381095209085a36eaab76260d5
This commit is contained in:
@@ -22,7 +22,7 @@ const ScriptLogger = {
|
||||
ScriptLogger.mismatchUsersCount += 1
|
||||
|
||||
if (user.lastLoggedIn) {
|
||||
let daysSinceLastLoggedIn =
|
||||
const daysSinceLastLoggedIn =
|
||||
(new Date() - user.lastLoggedIn) / 1000 / 3600 / 24
|
||||
ScriptLogger.allDaysSinceLastLoggedIn.push(daysSinceLastLoggedIn)
|
||||
}
|
||||
@@ -59,7 +59,7 @@ const checkAndUpdateUser = (user, callback) =>
|
||||
return callback(error)
|
||||
}
|
||||
|
||||
let mismatchReasons = FeaturesUpdater.compareFeatures(
|
||||
const mismatchReasons = FeaturesUpdater.compareFeatures(
|
||||
user.features,
|
||||
freshFeatures
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user