Add profiler step to lzma

This commit is contained in:
Daniel García Aubert 2018-03-01 19:09:11 +01:00
parent 5bac36b30f
commit ccc28f3617

View File

@ -21,6 +21,9 @@ module.exports = function lzma () {
try {
delete req.query.lzma;
Object.assign(req.query, JSON.parse(result));
req.profiler.done('lzma');
next();
} catch (err) {
next(new Error('Error parsing lzma as JSON: ' + err));