2896-route_tickets_refactor + transactions + unitest + e2e #623

Merged
joan merged 16 commits from 2896-route_tickets_refactor into dev 2021-05-17 10:32:45 +00:00
1 changed files with 1 additions and 3 deletions
Showing only changes of commit e848b94859 - Show all commits

View File

@ -50,7 +50,7 @@ module.exports = Self => {
u.nickname AS userNickname,
vn.ticketTotalVolume(t.id) AS volume
FROM route r
LEFT JOIN ticket t ON t.routeFk = r.id
JOIN ticket t ON t.routeFk = r.id
LEFT JOIN ticketState ts ON ts.ticketFk = t.id
LEFT JOIN state st ON st.id = ts.stateFk
LEFT JOIN warehouse wh ON wh.id = t.warehouseFk
@ -72,8 +72,6 @@ module.exports = Self => {
const tickets = await conn.executeStmt(stmt, myOptions);
if (tickets.length === 1 && !tickets[0].id) return [];
return tickets;
};
};