diff --git a/modules/service.js b/modules/service.js index 5a1595f..a950e36 100644 --- a/modules/service.js +++ b/modules/service.js @@ -284,14 +284,11 @@ let SnowlService = { let refreshTime = new Date(); for each (let source in allSources) { this._log.info("refreshing source " + source.name); - source.refresh(refreshTime, this.onRefresh, this); + source.refresh(refreshTime); + source.persist(); } }, - onRefresh: function(source) { - source.persist(); - }, - /** * Determine whether or not an author has at least one message in the database. *