From de5cbbd1410db27dc83cc31e96456d9140367032 Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Tue, 21 May 2024 14:31:28 +0530 Subject: [PATCH] fix: asset import & variant export issue --- packages/contentstack-import/src/config/index.ts | 1 + packages/contentstack-variants/src/utils/variant-api-adapter.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/contentstack-import/src/config/index.ts b/packages/contentstack-import/src/config/index.ts index 6169d52067..37ab06b5ca 100644 --- a/packages/contentstack-import/src/config/index.ts +++ b/packages/contentstack-import/src/config/index.ts @@ -27,6 +27,7 @@ const config: DefaultConfig = { types: [ 'locales', 'environments', + 'assets', 'taxonomies', 'extensions', 'marketplace-apps', diff --git a/packages/contentstack-variants/src/utils/variant-api-adapter.ts b/packages/contentstack-variants/src/utils/variant-api-adapter.ts index 476b169a2d..b4ca5e45dd 100644 --- a/packages/contentstack-variants/src/utils/variant-api-adapter.ts +++ b/packages/contentstack-variants/src/utils/variant-api-adapter.ts @@ -64,9 +64,9 @@ export class VariantHttpClient extends AdapterHelper implement getAllData, returnResult, content_type_uid, - locale, skip = variantConfig.query.skip || 0, limit = variantConfig.query.limit || 100, + locale = variantConfig.query.locale || 'en-us', include_variant = variantConfig.query.include_variant || true, } = options;