Przeglądaj źródła

allow settings.redis.project_history to be undefined

Hayden Faulds 8 lat temu
rodzic
commit
b8052e7612

+ 1 - 1
services/document-updater/app/coffee/RedisManager.coffee

@@ -31,7 +31,7 @@ MAX_RANGES_SIZE = 3 * MEGABYTES
 
 keys = Settings.redis.documentupdater.key_schema
 historyKeys = Settings.redis.history.key_schema
-projectHistoryKeys = Settings.redis.project_history.key_schema
+projectHistoryKeys = Settings.redis?.project_history?.key_schema
 
 module.exports = RedisManager =
 	rclient: rclient