From 7b94cc2942ae8c7a355563d704c1474c943c4cb1 Mon Sep 17 00:00:00 2001 From: joan Date: Sun, 14 Mar 2021 17:12:31 +0100 Subject: [PATCH] Ticket filter test --- modules/ticket/back/methods/ticket/filter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ticket/back/methods/ticket/filter.js b/modules/ticket/back/methods/ticket/filter.js index 5c941ef84..0fc7ed7dc 100644 --- a/modules/ticket/back/methods/ticket/filter.js +++ b/modules/ticket/back/methods/ticket/filter.js @@ -308,7 +308,7 @@ module.exports = Self => { stmt.merge(conn.makeOrderBy(filter.order)); stmt.merge(conn.makeLimit(filter)); - let ticketsIndex = stmts.push(stmt); + let ticketsIndex = stmts.push(stmt) - 1; stmts.push( `DROP TEMPORARY TABLE @@ -320,6 +320,7 @@ module.exports = Self => { let sql = ParameterizedSQL.join(stmts, ';'); let result = await conn.executeStmt(sql); + console.log(result); return result[ticketsIndex]; }; };