From 0335d6c51e0e6348f59ece827abd08a3a94ef224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20S=C3=A1nchez?= Date: Thu, 9 Jul 2020 08:45:17 +0200 Subject: [PATCH] Removed commented lines --- print/core/report.js | 1 - print/methods/report.js | 2 -- 2 files changed, 3 deletions(-) diff --git a/print/core/report.js b/print/core/report.js index ea6a360b5..75eb66962 100644 --- a/print/core/report.js +++ b/print/core/report.js @@ -1,5 +1,4 @@ const fs = require('fs'); -// const pdf = require('html-pdf'); const puppeteer = require('puppeteer'); const path = require('path'); const config = require('./config'); diff --git a/print/methods/report.js b/print/methods/report.js index 41b09ed05..eea249a42 100644 --- a/print/methods/report.js +++ b/print/methods/report.js @@ -10,8 +10,6 @@ module.exports = app => { res.setHeader('Content-type', 'application/pdf'); res.setHeader('Content-Disposition', `inline; filename="${fileName}"`); - - //stream.pipe(res); res.end(stream); } catch (error) { next(error);