Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Fix arguments to PathMonitor.process method on initFlashlight #171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
3 changes: 1 addition & 2 deletions config.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down