Modified the method, now the error is on the DB
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Pau 2022-09-27 08:06:35 +02:00
parent c563b07c01
commit 8d2ef655dd
1 changed files with 3 additions and 4 deletions

View File

@ -42,10 +42,9 @@ module.exports = Self => {
}
});
Self.collectionMissingTrash = async(saleId, quantity, isTrash, warehouseId, newQuantity) => {
let params = [saleId.args.saleId, quantity, isTrash, warehouseId, newQuantity];
const query = `CALL vn.collection_missingTrash(?)`;
const [result] = await Self.rawSql(query, [params]);
Self.collectionMissingTrash = async function missingTrash(saleId, quantity, isTrash, warehouseId, newQuantity) {
const query = `CALL vn.collection_missingTrash(?,?,?,?,?)`;
const [result] = await Self.rawSql(query, [saleId.args.saleId, quantity, isTrash, warehouseId, newQuantity]);
return result;
};
};