diff --git a/backend/endpoints/v1/tools/index.js b/backend/endpoints/v1/tools/index.js index 291518e..c030d65 100644 --- a/backend/endpoints/v1/tools/index.js +++ b/backend/endpoints/v1/tools/index.js @@ -69,10 +69,16 @@ function toolEndpoints(app) { status: "pending", organization_id: destinationOrg.id, }); - //TODO - uncomment if (!!existingJobForOrg || !!existingJobForDestinationOrg) { - // response.status(200).json({ success: false, message: "There is an existing migration job already running for these organizations." }); - // return; - // } + if (!!existingJobForOrg || !!existingJobForDestinationOrg) { + response + .status(200) + .json({ + success: false, + message: + "There is an existing migration job already running for these organizations.", + }); + return; + } await organizationMigrationJob(organization, destinationOrg, user); response