Modified the method, now the error is on the DB
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
c563b07c01
commit
8d2ef655dd
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue