diff --git a/services/web/app/coffee/Features/Compile/ClsiCookieManager.coffee b/services/web/app/coffee/Features/Compile/ClsiCookieManager.coffee index 9827e328b4..81e2e633e6 100644 --- a/services/web/app/coffee/Features/Compile/ClsiCookieManager.coffee +++ b/services/web/app/coffee/Features/Compile/ClsiCookieManager.coffee @@ -44,7 +44,7 @@ module.exports = ClsiCookieManager = serverId = ClsiCookieManager._parseServerIdFromResponse(response) multi = rclient.multi() multi.set buildKey(project_id), serverId - multi.expire buildKey(project_id), Settings.clsi_cookie_expire_length + multi.expire buildKey(project_id), Settings.clsi_cookie_expire_length_seconds multi.exec (err)-> callback(err, serverId) diff --git a/services/web/test/UnitTests/coffee/Compile/ClsiCookieManagerTests.coffee b/services/web/test/UnitTests/coffee/Compile/ClsiCookieManagerTests.coffee index f40078a1d2..1fc8716657 100644 --- a/services/web/test/UnitTests/coffee/Compile/ClsiCookieManagerTests.coffee +++ b/services/web/test/UnitTests/coffee/Compile/ClsiCookieManagerTests.coffee @@ -30,7 +30,7 @@ describe "ClsiCookieManager", -> apis: clsi: url: "http://clsi.example.com" - clsi_cookie_expire_length: Math.random() + clsi_cookie_expire_length_seconds: Math.random() clsiCookieKey: "coooookie" @requires = "redis-sharelatex" : @@ -90,7 +90,7 @@ describe "ClsiCookieManager", -> it "should set the server id with a ttl", (done)-> @ClsiCookieManager.setServerId @project_id, @response, (err)=> @redisMulti.set.calledWith("clsiserver:#{@project_id}", "clsi-8").should.equal true - @redisMulti.expire.calledWith("clsiserver:#{@project_id}", @settings.clsi_cookie_expire_length).should.equal true + @redisMulti.expire.calledWith("clsiserver:#{@project_id}", @settings.clsi_cookie_expire_length_seconds).should.equal true done() it "should return the server id", (done)->