From 8352459686fd125db13a7736142723df60518cd4 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Tue, 2 Jun 2020 18:28:13 +0200 Subject: [PATCH] Removed waiting request --- print/methods/closure.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/print/methods/closure.js b/print/methods/closure.js index 610dc3eec..a84fd4d20 100644 --- a/print/methods/closure.js +++ b/print/methods/closure.js @@ -4,7 +4,14 @@ const smtp = require('../core/smtp'); const config = require('../core/config'); module.exports = app => { - app.get('/api/closure', async function(request, response) { + app.get('/api/closure/by-ticket', async function(request, response) { + }); + + app.get('/api/closure/all', async function(request, response) { + response.status(200).json({ + message: 'Task executed successfully' + }); + const failedtickets = []; const tickets = await db.rawSql(` SELECT @@ -58,9 +65,5 @@ module.exports = app => { html: body }); } - - response.status(200).json({ - message: 'Closure executed successfully' - }); }); };