From b3c02821062ad9a33507107eb0482e56fff4d930 Mon Sep 17 00:00:00 2001 From: shreyvishal Date: Wed, 3 Apr 2024 21:57:26 +0530 Subject: [PATCH] Fixed:Test Cases --- controllers/ControlCenter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })