Commit 47e43a7a authored by nanahira's avatar nanahira

fix

parent 235fad59
...@@ -377,7 +377,10 @@ if settings.modules.challonge.enabled ...@@ -377,7 +377,10 @@ if settings.modules.challonge.enabled
challonge_module_name = settings.modules.challonge.use_custom_module challonge_module_name = settings.modules.challonge.use_custom_module
challonge = global.challonge = require(challonge_module_name).createClient(settings.modules.challonge.options) challonge = global.challonge = require(challonge_module_name).createClient(settings.modules.challonge.options)
if settings.modules.challonge.cache_ttl if settings.modules.challonge.cache_ttl
challonge_cache = [] challonge_cache = {
participants: null
matches: null
}
challonge_queue_callbacks = { challonge_queue_callbacks = {
participants: [] participants: []
matches: [] matches: []
......
...@@ -492,7 +492,10 @@ ...@@ -492,7 +492,10 @@
} }
challonge = global.challonge = require(challonge_module_name).createClient(settings.modules.challonge.options); challonge = global.challonge = require(challonge_module_name).createClient(settings.modules.challonge.options);
if (settings.modules.challonge.cache_ttl) { if (settings.modules.challonge.cache_ttl) {
challonge_cache = []; challonge_cache = {
participants: null,
matches: null
};
} }
challonge_queue_callbacks = { challonge_queue_callbacks = {
participants: [], participants: [],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment