mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Rewrite sum to be more Readable
This commit is contained in:
@@ -90,7 +90,8 @@ module ProductImport
|
||||
end
|
||||
|
||||
def total_saved_count
|
||||
@products_created + @variants_created + @variants_updated + @inventory_created + @inventory_updated
|
||||
[@products_created, @variants_created, @variants_updated,
|
||||
@inventory_created, @inventory_updated].sum
|
||||
end
|
||||
|
||||
def permission_by_id?(enterprise_id)
|
||||
|
||||
Reference in New Issue
Block a user