mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Fix typo in log message
This commit is contained in:
parent
a3a2108526
commit
5a97521b04
1 changed files with 2 additions and 2 deletions
|
@ -13,14 +13,14 @@ module.exports = SudoModeHandler =
|
|||
|
||||
activateSudoMode: (userId, callback=(err)->) ->
|
||||
if !userId?
|
||||
return callback(new Error('[SudoMode] user must not be supplied'))
|
||||
return callback(new Error('[SudoMode] user must be supplied'))
|
||||
duration = TIMEOUT_IN_SECONDS
|
||||
logger.log {userId, duration}, "[SudoMode] activating sudo mode for user"
|
||||
rclient.set SudoModeHandler._buildKey(userId), '1', 'EX', duration, callback
|
||||
|
||||
isSudoModeActive: (userId, callback=(err, isActive)->) ->
|
||||
if !userId?
|
||||
return callback(new Error('[SudoMode] user must not be supplied'))
|
||||
return callback(new Error('[SudoMode] user must be supplied'))
|
||||
rclient.get SudoModeHandler._buildKey(userId), (err, result) ->
|
||||
if err?
|
||||
return callback(err)
|
||||
|
|
Loading…
Reference in a new issue