fix: delete unnecessary code
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2023-01-20 12:16:06 +01:00
parent 91e27d76be
commit b1be6addd1
1 changed files with 0 additions and 18 deletions

View File

@ -48,24 +48,6 @@ module.exports = Self => {
const trackings = await Self.rawStmt(stmt, myOptions);
const salesFilter = {
include: [
{
relation: 'item'
}
],
where: {ticketFk: filter.where.ticketFk}
};
const sales = await Self.app.models.Sale.find(salesFilter, myOptions);
for (const tracking of trackings) {
for (const sale of sales) {
if (tracking.itemFk == sale.itemFk)
tracking.item = sale.item();
}
}
return trackings;
};
};