From 223ccedb91841c65a201346fe50222a4313552a5 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 18 Feb 2019 18:29:13 -0800 Subject: [PATCH] Fixed MongoDB collection names. --- db.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db.js b/db.js index 0682cf95..7055c359 100644 --- a/db.js +++ b/db.js @@ -60,7 +60,7 @@ module.exports.CreateDB = function (parent) { }); // Setup MongoDB events collection and indexes - obj.eventsfile = db.collection(dbcollection + '-events'); // Collection containing all events + obj.eventsfile = db.collection('events'); // Collection containing all events obj.eventsfile.getIndexes(function (err, indexes) { // Check if we need to reset indexes var indexesByName = {}, indexCount = 0; @@ -82,7 +82,7 @@ module.exports.CreateDB = function (parent) { }); // Setup MongoDB power events collection and indexes - obj.powerfile = db.collection(dbcollection + '-power'); // Collection containing all power events + obj.powerfile = db.collection('power'); // Collection containing all power events obj.powerfile.getIndexes(function (err, indexes) { // Check if we need to reset indexes var indexesByName = {}, indexCount = 0;