From 1aba395c6d99cc37c39aae9733fc4e768e57e675 Mon Sep 17 00:00:00 2001 From: Antony Date: Fri, 8 Mar 2024 14:52:46 +0530 Subject: [PATCH] Config fix --- .../src/utils/variant-api-adapter.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/contentstack-export/src/utils/variant-api-adapter.ts b/packages/contentstack-export/src/utils/variant-api-adapter.ts index ab74ebe72f..6f56d8ae32 100644 --- a/packages/contentstack-export/src/utils/variant-api-adapter.ts +++ b/packages/contentstack-export/src/utils/variant-api-adapter.ts @@ -40,14 +40,14 @@ class VariantHttpClient implements Variant { options: VariantsOption, entries?: Record[], ): Promise<{ entries?: Record[] | unknown[] }> { - const vaiantConfig = config.modules.entryVariant; + const variantConfig = config.modules.entryVariant; const { entry_uid, content_type_uid, - skip = vaiantConfig.query.skip || 0, - limit = vaiantConfig.query.limit || 100, - locale = vaiantConfig.query.locale || 'en-us', - include_variant = vaiantConfig.query.include_variant || true, + skip = variantConfig.query.skip || 0, + limit = variantConfig.query.limit || 100, + locale = variantConfig.query.locale || 'en-us', + include_variant = variantConfig.query.include_variant || true, } = options; let endpoint = `${this.baseURL}/content_types/${content_type_uid}/entries/${entry_uid}/variants?locale=${locale}`; @@ -63,7 +63,7 @@ class VariantHttpClient implements Variant { endpoint.concat('&include_variant'); } - const query = this.constructQuery(omit(vaiantConfig.query, ['skip', 'limit', 'locale', 'include_variant'])); + const query = this.constructQuery(omit(variantConfig.query, ['skip', 'limit', 'locale', 'include_variant'])); if (query) { endpoint = endpoint.concat(query);