Skip to content

Commit

Permalink
Merge pull request #2 from Fernando-Santana-j/development
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Fernando-Santana-j authored May 26, 2024
2 parents d5e02b3 + 51d1198 commit 0b990c4
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions stripe/productsRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,17 @@ router.post('/estoque/txt', async (req, res) => {


await file.forEach(element => {
finalEstoqueArr.push({
conteudo:[
{
title: title,
content:element
}
]
})
element = element.trim()
if (element && element != '' && element != null && element != undefined) {
finalEstoqueArr.push({
conteudo:[
{
title: title,
content:element
}
]
})
}
});
finalEstoqueArr = await finalEstoqueArr.filter(linha => linha.conteudo[0].content.length > 0)
produtos[index] = product
Expand Down

0 comments on commit 0b990c4

Please sign in to comment.