Skip to content
Snippets Groups Projects
Commit c4cae1d0 authored by aurieh's avatar aurieh
Browse files

Fix devdeps, freshclam

parent d8cb9211
No related branches found
No related tags found
No related merge requests found
...@@ -5,12 +5,7 @@ const freshClam = require('../lib/freshclam.js'); ...@@ -5,12 +5,7 @@ const freshClam = require('../lib/freshclam.js');
* > GET /freshclam * > GET /freshclam
* Run freshclam to update the virus database. * Run freshclam to update the virus database.
*/ */
module.exports = function* freshclam() { module.exports = function* freshclam () {
freshClam().then(() => { yield freshClam();
this.status = 200; this.status = 200;
}).catch(err => { };
console.error('failed to update virus definitions');
console.error(err);
this.status = 500;
});
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment