mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix acceptance tests, use the correct method of getting redis key.
This commit is contained in:
parent
b67a65ff6a
commit
b212c00311
1 changed files with 2 additions and 2 deletions
|
@ -11,11 +11,11 @@ rclient = UserSessionsRedis.client()
|
|||
module.exports =
|
||||
|
||||
getUserSessions: (user, callback=(err, sessionsSet)->) ->
|
||||
rclient.smembers "UserSessions:{#{user._id}}", (err, result) ->
|
||||
rclient.smembers UserSessionsRedis.sessionSetKey(user), (err, result) ->
|
||||
return callback(err, result)
|
||||
|
||||
clearUserSessions: (user, callback=(err)->) ->
|
||||
sessionSetKey = "UserSessions:{#{user._id}}"
|
||||
sessionSetKey = UserSessionsRedis.sessionSetKey(user)
|
||||
rclient.smembers sessionSetKey, (err, sessionKeys) ->
|
||||
if err
|
||||
return callback(err)
|
||||
|
|
Loading…
Reference in a new issue