Browse Source

批量fork团队人数处理

pull/330/head
xxq250 3 years ago
parent
commit
e1c6cf3c54
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/tasks/batch_forked_project.rake

+ 1
- 1
lib/tasks/batch_forked_project.rake 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)


Loading…
Cancel
Save