Commit 8ff5b46b authored by Heinrich Lee Yu's avatar Heinrich Lee Yu Committed by Douglas Barbosa Alexandre

Add save to Projects::MoveAccessService

In Rails 6, after_commit callbacks are no longer called
unless the model was saved
parent 0bc0f05e
...@@ -20,6 +20,8 @@ module Projects ...@@ -20,6 +20,8 @@ module Projects
::Projects::MoveProjectAuthorizationsService.new(@project, @current_user) ::Projects::MoveProjectAuthorizationsService.new(@project, @current_user)
.execute(source_project, remove_remaining_elements: remove_remaining_elements) .execute(source_project, remove_remaining_elements: remove_remaining_elements)
@project.save(touch: false)
success success
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment