Merge pull request #4799 from overleaf/hb-eslint-rules
Re-enable some eslint rules GitOrigin-RevId: 16153adb839bb61784bb40fbc8e43da281fe090d
This commit is contained in:
@@ -11,9 +11,6 @@ const OneTimeTokenHandler = {
|
||||
if (!options) {
|
||||
options = {}
|
||||
}
|
||||
if (!callback) {
|
||||
callback = function (error, data) {}
|
||||
}
|
||||
if (typeof options === 'function') {
|
||||
callback = options
|
||||
options = {}
|
||||
@@ -40,9 +37,6 @@ const OneTimeTokenHandler = {
|
||||
},
|
||||
|
||||
getValueFromTokenAndExpire(use, token, callback) {
|
||||
if (!callback) {
|
||||
callback = function (error, data) {}
|
||||
}
|
||||
const now = new Date()
|
||||
db.tokens.findOneAndUpdate(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user