Use es6 notation in newsfeed module

This commit is contained in:
rejas
2021-03-16 21:15:19 +01:00
parent e4f671c898
commit a70bb517e1
3 changed files with 22 additions and 28 deletions

View File

@@ -74,8 +74,8 @@ module.exports = NodeHelper.create({
* and broadcasts these using sendSocketNotification.
*/
broadcastFeeds: function () {
var feeds = {};
for (var f in this.fetchers) {
const feeds = {};
for (let f in this.fetchers) {
feeds[f] = this.fetchers[f].items();
}
this.sendSocketNotification("NEWS_ITEMS", feeds);