@open-mercato/sync-akeneo 0.6.6-develop.6429.1.2fba7258d1 → 0.6.6-develop.6450.1.b493fb430c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modules/sync_akeneo/lib/catalog-importer.js +12 -1
- package/dist/modules/sync_akeneo/lib/catalog-importer.js.map +2 -2
- package/dist/modules/sync_akeneo/lib/client.js +78 -10
- package/dist/modules/sync_akeneo/lib/client.js.map +2 -2
- package/package.json +5 -5
- package/src/modules/sync_akeneo/__tests__/catalog-importer.test.ts +68 -0
- package/src/modules/sync_akeneo/__tests__/client.test.ts +60 -14
- package/src/modules/sync_akeneo/lib/catalog-importer.ts +12 -1
- package/src/modules/sync_akeneo/lib/client.ts +101 -10
|
@@ -846,7 +846,18 @@ async function createAkeneoImporter(client, scope) {
|
|
|
846
846
|
const externalId = familyVariant?.code ?? family.code;
|
|
847
847
|
const schemaCode = slugifyAkeneoCode(`akeneo-${externalId}`);
|
|
848
848
|
const mappedId = await externalIdMappingService.lookupLocalId("sync_akeneo", "catalog_option_schema", externalId, scope);
|
|
849
|
-
const existing = mappedId ? await findOneWithDecryption(
|
|
849
|
+
const existing = mappedId ? await findOneWithDecryption(
|
|
850
|
+
em,
|
|
851
|
+
CatalogOptionSchemaTemplate,
|
|
852
|
+
{
|
|
853
|
+
id: mappedId,
|
|
854
|
+
organizationId: scope.organizationId,
|
|
855
|
+
tenantId: scope.tenantId,
|
|
856
|
+
deletedAt: null
|
|
857
|
+
},
|
|
858
|
+
void 0,
|
|
859
|
+
scope
|
|
860
|
+
) : await findOneWithDecryption(
|
|
850
861
|
em,
|
|
851
862
|
CatalogOptionSchemaTemplate,
|
|
852
863
|
{
|