apply changes from PR #15

This commit is contained in:
GotPPay
2018-04-03 15:56:13 +02:00
9 changed files with 148 additions and 134 deletions

View File

@@ -6,14 +6,6 @@ const constants = require ('../config/constants');
let parser = new Parser ();
getDataFromRSSFeed = function (url) {
//let feed = await parser.parseURL(url);
//console.log(feed.title);
//feed.items.forEach(item => {
// console.log(item.title + ':' + item.link)
//});
};
getDataFromWPJSON = function (sourceUrl, page = 1, maxPosts = 10) {
return new Promise ((resolve, reject) => {
var options = {