Modified how the params are passed to the DB

This commit is contained in:
Pau 2022-09-28 07:23:10 +02:00
parent 4fefdade69
commit 2e89dd65f6
1 changed files with 1 additions and 1 deletions

View File

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