Skip to content

Commit

Permalink
chore: set new minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis authored Jul 6, 2024
1 parent ca0e469 commit 2a59506
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions functions/lib/correios-calculate.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const calculate = async ({
}
if (correiosParams.vlDeclarado) {
const value = Number(correiosParams.vlDeclarado)
if (value < 25) {
correiosParams.vlDeclarado = '25'
if (value < 25.63) {
correiosParams.vlDeclarado = '26'
} else if (value > 10000) {
correiosParams.vlDeclarado = '10000'
}
Expand Down Expand Up @@ -90,9 +90,6 @@ const calculate = async ({
}
return _params
})
if (storeId == 51504) {
console.log('log body calc', JSON.stringify(correiosParams))
}
return Promise.all([
correios.post('/preco/v1/nacional', {
idLote: '1',
Expand Down

0 comments on commit 2a59506

Please sign in to comment.