Split growing supplied product builder

This commit is contained in:
Maikel Linke
2025-01-23 16:22:24 +11:00
parent 2043d1f8df
commit fbdc6c9bd0
6 changed files with 388 additions and 358 deletions

View File

@@ -48,9 +48,9 @@ module Admin
existing_variant = @enterprise.supplied_variants.linked_to(semantic_id)
if existing_variant
SuppliedProductBuilder.update_product(subject, existing_variant)
SuppliedProductImporter.update_product(subject, existing_variant)
else
SuppliedProductBuilder.store_product(subject, @enterprise)
SuppliedProductImporter.store_product(subject, @enterprise)
end
end