Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vinner57 committed Jul 3, 2023
1 parent f62f7ef commit 1a013b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/tasks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ def create
def update
Task.transaction do
assigned_to_judge = (params[:task][:assigned_to_judge] || false)
task.assign_to_judge = assigned_to_judge
tasks = task.update_from_params(update_params, current_user)
tasks = task.update_from_params(update_params, current_user, assigned_to_judge)
tasks.each { |t| return invalid_record_error(t) unless t.valid? }

tasks_hash = json_tasks(tasks.uniq)
Expand Down

0 comments on commit 1a013b6

Please sign in to comment.