Skip to content

Commit

Permalink
Fixed:Test Cases
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyvishal committed Apr 3, 2024
1 parent 08e51c7 commit b3c0282
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 @@ -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 })
Expand Down

0 comments on commit b3c0282

Please sign in to comment.