diff --git a/packages/botonic-plugin-contentful/src/tools/l10n/import-updater.ts b/packages/botonic-plugin-contentful/src/tools/l10n/import-updater.ts index ff767e8a60..0bc66d3a06 100644 --- a/packages/botonic-plugin-contentful/src/tools/l10n/import-updater.ts +++ b/packages/botonic-plugin-contentful/src/tools/l10n/import-updater.ts @@ -170,16 +170,6 @@ export class ImportContentUpdater { } private async updateFields(content: ContentToImport) { - for (const field of getFieldsForContentType(content.contentId.model)) { - const f = CONTENT_FIELDS.get(field)! - switch (f.valueType) { - case ContentFieldValueType.STRING_ARRAY: - case ContentFieldValueType.STRING: - break - default: - continue - } - } const newVal = await this.manageCms.updateFields( this.context, content.contentId, diff --git a/packages/botonic-plugin-contentful/src/util/memoizer.ts b/packages/botonic-plugin-contentful/src/util/memoizer.ts index 8f61338813..8b1d16304f 100644 --- a/packages/botonic-plugin-contentful/src/util/memoizer.ts +++ b/packages/botonic-plugin-contentful/src/util/memoizer.ts @@ -49,13 +49,12 @@ export class Memoizer { const cache: Cache = this.cacheFactory() const f = (...args: Args) => this.strategy(cache, this.normalizer, func, ...args) - // f.cache = cache return f as F } } /*** - * Only reinvoke if not in cache + * Only re-invoke if not in cache */ export const cacheForeverStrategy: MemoizerStrategy = async < Args extends any[], @@ -87,7 +86,6 @@ export function fallbackStrategy( func: (...args: Args) => Promise, ...args: Args ) => { - // return func(...args) const id = normalizer(...args) const oldVal = cache.get(id)