批量fork团队人数处理

This commit is contained in:
xxq250 2023-03-10 11:19:10 +08:00
parent d4fecc0c9d
commit e1c6cf3c54
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ namespace :batch_forked_project do
next if user.blank?
next if Project.exists?(user_id: user.id, identifier: project.identifier)
new_project = Projects::ForkService.new(user, project, nil).call
random_num = rand(2..8)
random_num = rand(5..20)
members = user_logins.sample(random_num)
members.each do |m|
m_user = User.find_by(login: m)