diff --git a/controllers/ControlCenter.js b/controllers/ControlCenter.js index b135a57..daf74c2 100644 --- a/controllers/ControlCenter.js +++ b/controllers/ControlCenter.js @@ -21,7 +21,7 @@ export const cancelBooking = async (req, res) => { } const validOrderId = await action.call_api(`${TOURISM_STRAPI_URL}/orders/${orderId}`,'GET',{},{ Authorization: `Bearer ${process.env.STRAPI_TOURISM_TOKEN}`}) - logger.info(`${[`${TOURISM_STRAPI_URL}/orders/${orderId}`,'GET',{},{ Authorization: `Bearer ${process.env.STRAPI_TOURISM_TOKEN}`}]}`) + logger.info(`${JSON.stringify([`${TOURISM_STRAPI_URL}/orders/${orderId}`,'GET',{},{ Authorization: `Bearer ${process.env.STRAPI_TOURISM_TOKEN}`}])}`) logger.info(`OrderDetails: ${JSON.stringify(validOrderId)}`) if(!validOrderId.status){ return res.status(400).send({ message: `Invalid Order Id`, status:false })