removed LEFT from join
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
3a25dbc3b1
commit
e848b94859
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue