Skip to content

Commit

Permalink
fix: fix handling tag creation response (id) from freteclick api
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Sep 17, 2024
1 parent 1c4316a commit f1d1fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/routes/ecom/webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ exports.post = ({ appSdk }, req, res) => {
const data = await createTag(order, storeId, appData, appSdk)
logger.info(`Tag created for #${storeId} ${orderId}`, { data })
trackingCodes.push({
code: data.id,
code: data['@id'] || data.id,
link: 'https://www.freteclick.com.br/rastreamento',
tag: 'freteclick'
})
Expand Down

0 comments on commit f1d1fc4

Please sign in to comment.