Modified how the params are passed to the DB
This commit is contained in:
parent
4fefdade69
commit
2e89dd65f6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue