Corrige ortografia de alguns cometarios
This commit is contained in:
parent
0386e2bbcf
commit
8fe0a6762b
|
@ -54,7 +54,7 @@ const create = async (soldProducts) => {
|
|||
|
||||
// CREATING:
|
||||
|
||||
const insertedId = await models.create(soldProducts); // if come here, thas means all productId were found
|
||||
const insertedId = await models.create(soldProducts); // if come to here, that means all productId were found
|
||||
|
||||
// UPDATING product stock quantity:
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ const validSaleId = (id) => {
|
|||
};
|
||||
|
||||
const decProductQtd = async (soldProducts) => {
|
||||
// map every "soldProducts" passed and increment each quantity of it:
|
||||
// map every "soldProducts" passed and decrement its quantity:
|
||||
|
||||
const promises = soldProducts.map(async ({ productId, quantity }) => {
|
||||
const { modifiedCount } = await modelsProducts.updateQtd(productId, -quantity);
|
||||
|
@ -69,7 +69,7 @@ const decProductQtd = async (soldProducts) => {
|
|||
};
|
||||
|
||||
const incProductQtd = async (soldProducts) => {
|
||||
// map every "soldProducts" passed and increment each quantity of it:
|
||||
// map every "soldProducts" passed and increment its quantity:
|
||||
|
||||
const promises = soldProducts.map(async ({ productId, quantity }) => {
|
||||
const { modifiedCount } = await modelsProducts.updateQtd(productId, quantity);
|
||||
|
|
Loading…
Reference in a new issue