Corrige ortografia de alguns cometarios

This commit is contained in:
Michel Pereira 2021-10-24 02:29:14 -03:00
parent 0386e2bbcf
commit 8fe0a6762b
2 changed files with 3 additions and 3 deletions

View file

@ -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:

View file

@ -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);