From f10fbbb564e2e04654d95a90e675803ca1c94d29 Mon Sep 17 00:00:00 2001 From: Ardin Fardiansyah Date: Sun, 17 Sep 2017 15:33:51 +0700 Subject: [PATCH] Fix arguments to `PathMonitor.process` method on initFlashlight Also update comments on config.example.js from FB_PATHS -> FB_PATH --- app.js | 2 +- config.example.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index ada2178..782498b 100644 --- a/app.js +++ b/app.js @@ -41,6 +41,6 @@ var timeoutObj = setInterval(function() { function initFlashlight() { console.log('Connecting to Firebase %s'.grey, conf.FB_URL); fbutil.init(conf.FB_URL, conf.FB_SERVICEACCOUNT); - PathMonitor.process(esc, conf.paths, conf.FB_PATH); + PathMonitor.process(esc, conf.paths || conf.FB_PATH); SearchQueue.init(esc, conf.FB_REQ, conf.FB_RES, conf.CLEANUP_INTERVAL); } \ No newline at end of file diff --git a/config.example.js b/config.example.js index 96adba0..f7c9bce 100644 --- a/config.example.js +++ b/config.example.js @@ -57,8 +57,7 @@ else { * * To store your paths dynamically, rather than specifying them all here, you can store them in Firebase. * Format each path object with the same keys described above, and store the array of paths at whatever - * location you specified in the FB_PATHS variable. Be sure to restrict that data in your Security Rules. - ****************************************************/ + * location you specified in the FB_PATH variable. Be sure to restrict that data in your Security Rules. ****************************************************/ exports.paths = [ { path : "users",