Fixed bug caused by older redis versions not accepting float-point expiry.
This commit is contained in:
1 parent
e77cdd10c8
commit
fb1247191f
1 file changed
+1
-1
+1
-1
@@ -218,7 +218,7 @@ assertPresets = (currentRequest) ->
|
||||
|
||||
presets.getDevicePreset(currentRequest.deviceId, allPresets, allObjects, (devicePreset) ->
|
||||
presets.processDevicePreset(currentRequest.deviceId, devicePreset, (taskList, addTags, deleteTags, expiry) ->
|
||||
db.redisClient.setex("#{currentRequest.deviceId}_presets_hash", expiry - config.PRESETS_TIME_PADDING, presetsHash, (err, res) ->
|
||||
db.redisClient.setex("#{currentRequest.deviceId}_presets_hash", Math.floor(expiry - config.PRESETS_TIME_PADDING), presetsHash, (err, res) ->
|
||||
throw err if err
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user