Rewrite sum to be more Readable

This commit is contained in:
Neal Chambers
2023-04-26 23:20:37 +09:00
parent 449430cabc
commit a35a07b441

View File

@@ -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)