diff --git a/modules/currency-exchange-json-service.js b/modules/currency-exchange-json-service.js index 9518d2b..2acb4cc 100644 --- a/modules/currency-exchange-json-service.js +++ b/modules/currency-exchange-json-service.js @@ -261,15 +261,9 @@ var compareRates = function compareRates(ratesOfInterest) } } } - // if we have some change in rates or if there is no pulls - // in the datastore yet - save the pull - if(changedRates.length > 0 || pulls.length === 0){ - logger.info("Storing this pull in the datastore."); - // stuff them into the datastore - insertNewPullDoc(ratesOfInterest); - } else { - logger.info("Not storing this pull in the datastore."); - } + // stuff them into the datastore + logger.info("Storing the pull in the datastore."); + insertNewPullDoc(ratesOfInterest); // if change in rates - notify via email if(changedRates.length > 0) { sendEmailNotifications(changedRates);