Skip to content

Commit

Permalink
Added: Update Status to webhook API
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyvishal committed Apr 9, 2024
1 parent 1fd4a1f commit 5acf784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/ControlCenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export const updateStatus = async (req, res) => {
state_value: DOMAIN_DETAILS.message,
},
},{ Authorization: `Bearer ${DOMAIN_DETAILS.token}`})
const webhookResponse = await action.call_api(`${process.env.BASE_URL}/webhook-ps`, 'POST',{...updateStatusResponse, orderId:orderId});
const webhookResponse = await action.call_api(`${process.env.SERVER_URL}/webhook-ps`, 'POST',{...updateStatusResponse, orderId:orderId});
logger.info(JSON.stringify(webhookResponse));
return res.status(200).send({ message: `Status Updated to: ${updateStatusResponse.data.data.attributes.state_value}`, status:true })
}
Expand Down

0 comments on commit 5acf784

Please sign in to comment.