Modified the SQL query, error now on the procedure
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Pau 2022-09-28 12:48:17 +02:00
parent 586af16392
commit a7e874ed0d
1 changed files with 1 additions and 1 deletions

View File

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