Skip to content

Commit

Permalink
chore: increasing timeout to freteclick api on calculate to 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Sep 17, 2024
1 parent 30f41bf commit 493c215
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 143 deletions.
44 changes: 0 additions & 44 deletions functions/routes/ecom/modules/apply-discount.js

This file was deleted.

2 changes: 1 addition & 1 deletion functions/routes/ecom/modules/calculate-shipping.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ exports.post = async ({ appSdk }, req, res) => {
method: 'post',
token,
data: body,
timeout: (params.is_checkout_confirmation ? 8000 : 4000)
timeout: (params.is_checkout_confirmation ? 8000 : 5000)
}).then(({ data, status }) => {
let result
if (typeof data === 'string') {
Expand Down
49 changes: 0 additions & 49 deletions functions/routes/ecom/modules/create-transaction.js

This file was deleted.

49 changes: 0 additions & 49 deletions functions/routes/ecom/modules/list-payments.js

This file was deleted.

0 comments on commit 493c215

Please sign in to comment.