ffffng/server/jobs/nodeInformationCleanupJob.js

14 lines
420 B
JavaScript
Raw Normal View History

'use strict';
angular.module('ffffng').factory('NodeInformationCleanupJob', function (MonitoringService, Logger) {
return {
run: function () {
MonitoringService.cleanupNodeInformation(function (err) {
if (err) {
Logger.tag('monitoring', 'information-cleanup').error('Error cleaning up node data:', err);
}
});
}
};
});