ffffng/server/jobs/FixNodeFilenamesJob.js

19 lines
481 B
JavaScript
Raw Normal View History

2018-12-17 22:49:54 +01:00
'use strict';
const Logger = require('../logger')
const NodeService = require('../services/nodeService')
module.exports = {
description: 'Makes sure node files (holding fastd key, name, etc.) are correctly named.',
run: function (callback) {
NodeService.fixNodeFilenames(function (err) {
if (err) {
Logger.tag('nodes', 'fix-filenames').error('Error fixing filenames:', err);
}
callback();
});
}
}