Skip to content

Commit 6ebae54

Browse files
committed
fix(appmax): Fix awaiting request for Appmax order read on webhook
1 parent dc3c999 commit 6ebae54

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/apps/appmax/lib-mjs/appmax-webhook.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ const handleAppmaxWehook = async (req, res) => {
1717
if (!APPMAX_TOKEN) {
1818
return res.sendStatus(403);
1919
}
20-
const { data } = axios.get(
20+
const { data } = await axios.get(
2121
`https://admin.appmax.com.br/api/v3/order/${appmaxOrderId}`,
2222
{
23-
headers: { 'access-token': APPMAX_TOKEN },
23+
params: { 'access-token': APPMAX_TOKEN },
2424
},
2525
{
2626
maxRedirects: 0,

0 commit comments

Comments
 (0)