diff --git a/packages/contentstack-bulk-publish/src/producer/publish-assets.js b/packages/contentstack-bulk-publish/src/producer/publish-assets.js index 698855e067..1846b13aff 100644 --- a/packages/contentstack-bulk-publish/src/producer/publish-assets.js +++ b/packages/contentstack-bulk-publish/src/producer/publish-assets.js @@ -51,7 +51,7 @@ async function getAssets(stack, folder, bulkPublish, environments, locale, apiVe environments: environments, locale, stack: stack, - apiVersion + apiVersion, }); bulkPublishSet = []; } @@ -63,7 +63,7 @@ async function getAssets(stack, folder, bulkPublish, environments, locale, apiVe environments: environments, locale, stack: stack, - apiVersion + apiVersion, }); bulkPublishSet = []; } @@ -83,6 +83,8 @@ async function getAssets(stack, folder, bulkPublish, environments, locale, apiVe } await getAssets(stack, folder, bulkPublish, environments, locale, apiVersion, skip); return resolve(); + } else { + resolve(); } }) .catch((error) => {