Fix assignments after my module creation [SCI-6552] (#3871)

This commit is contained in:
artoscinote 2022-02-18 11:25:30 +01:00 committed by GitHub
parent 10821edbba
commit c4a75d7543
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,8 +26,8 @@ module UserAssignments
end
def assign_users_to_my_module(my_module)
project = my_module.experiment.project
project.user_assignments.find_each do |user_assignment|
experiment = my_module.experiment
experiment.user_assignments.find_each do |user_assignment|
create_or_update_user_assignment(user_assignment, my_module)
end
end