Ticket filter test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-03-14 17:12:31 +01:00
parent 2aff48c42d
commit 7b94cc2942
1 changed files with 2 additions and 1 deletions

View File

@ -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];
};
};