Skip to content

Commit

Permalink
Feat : removed waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-egov committed Jul 31, 2024
1 parent 8b68a55 commit a56c5a7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions utilities/project-factory/src/server/utils/campaignUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1349,8 +1349,6 @@ async function createProject(request: any, actionUrl: any, localizationMap?: any

async function processAfterPersist(request: any, actionInUrl: any) {
try {
logger.info("Waiting for 2 second to persist process tracks...")
await new Promise((resolve) => setTimeout(resolve, 2000));
const localizationMap = await getLocalizedMessagesHandler(request, request?.body?.CampaignDetails?.tenantId);
if (request?.body?.CampaignDetails?.action == "create") {
await persistTrack(request.body.CampaignDetails.id, processTrackTypes.validation, processTrackStatuses.completed);
Expand Down

0 comments on commit a56c5a7

Please sign in to comment.