@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.
@@ -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(em, CatalogOptionSchemaTemplate, { id: mappedId, deletedAt: null }, void 0, scope) : 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
  {