lib/isomorfeus/operation/run_task.rb in isomorfeus-operation-23.9.0.rc10 vs lib/isomorfeus/operation/run_task.rb in isomorfeus-operation-23.9.0.rc11

- old
+ new

@@ -35,16 +35,17 @@ u else Anonymous.new end Thread.current[:isomorfeus_user] = user_instance - raise 'Access denied!' unless Thread.current[:isomorfeus_user].authorized?(operation_class, :promise_run, task[:props]) + props = task[:props].transform_keys(&:to_sym) + raise 'Access denied!' unless Thread.current[:isomorfeus_user].authorized?(operation_class, :promise_run, props) if @recurring - operation_class.promise_run(**task[:props]) + operation_class.promise_run(**props) .then { mark_as_ready(task) } .fail { |e| task[:fail] ? mark_as_failed(task, e) : save_exception(task, e) } else - operation_class.promise_run(**task[:props]) + operation_class.promise_run(**props) .then { remove_task(task) } .fail { |e| mark_as_failed(task, e) } end rescue => e mark_as_failed(task, e)