fix: delete unnecessary code
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
91e27d76be
commit
b1be6addd1
|
@ -48,24 +48,6 @@ module.exports = Self => {
|
||||||
|
|
||||||
const trackings = await Self.rawStmt(stmt, myOptions);
|
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;
|
return trackings;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue