From 6aee3da80e901d87779f2b622c1748ff8c7fc03f Mon Sep 17 00:00:00 2001 From: Shristi Sinha Date: Thu, 25 Apr 2024 14:43:38 +0530 Subject: [PATCH] change cond in update destination stack api --- api/src/services/projects.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/src/services/projects.service.ts b/api/src/services/projects.service.ts index 1b5ad674..de1940ab 100644 --- a/api/src/services/projects.service.ts +++ b/api/src/services/projects.service.ts @@ -492,8 +492,7 @@ const updateDestinationStack = async (req: Request) => { ); throw new BadRequestError(HTTP_TEXTS.CANNOT_UPDATE_DESTINATION_STACK); } - - if (project.current_step > STEPPER_STEPS.LEGACY_CMS) { + if (project.current_step > STEPPER_STEPS.DESTINATION_STACK) { await contentMapperService.resetAllContentTypesMapping(projectId); logger.info( getLogMessage(