mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-09 18:39:11 +00:00
set rclient.expire for server ttl even when there is no server id
This commit is contained in:
parent
d99a42e678
commit
473063cf3d
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ module.exports = (backendGroup)->
|
|||
return callback()
|
||||
serverId = @_parseServerIdFromResponse(response)
|
||||
if !serverId? # We don't get a cookie back if it hasn't changed
|
||||
return callback()
|
||||
return rclient.expire(@buildKey(project_id), Settings.clsiCookie.ttl, callback)
|
||||
if rclient_secondary?
|
||||
@_setServerIdInRedis rclient_secondary, project_id, serverId
|
||||
@_setServerIdInRedis rclient, project_id, serverId, (err) ->
|
||||
|
|
Loading…
Add table
Reference in a new issue