批量fork团队人数处理

This commit is contained in:
xxq250 2023-03-09 14:00:12 +08:00
parent 8f67181b16
commit ca6bd9a9a6
1 changed files with 1 additions and 1 deletions

View File

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