diff --git a/app/services/on_demand_derivative_creator.rb b/app/services/on_demand_derivative_creator.rb index 966c1a839..1d010010e 100644 --- a/app/services/on_demand_derivative_creator.rb +++ b/app/services/on_demand_derivative_creator.rb @@ -68,7 +68,7 @@ def find_or_create_record(retry_count: 0) return record rescue ActiveRecord::RecordNotUnique # race condition, someone else created it, no biggy, just try again - return find_or_create_record(type, retry_count: retry_count + 1) + return find_or_create_record(retry_count: retry_count + 1) end # @return OnDemandDerivative record that will have status and data for work and derivative type