Browse Source

修复

pull/313/head
yystopf 3 years ago
parent
commit
84a8339a04
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/tasks/sync_data_to_gitea.rake

+ 1
- 1
lib/tasks/sync_data_to_gitea.rake View File

@@ -28,7 +28,7 @@ namespace :sync_data_to_gitea do
end
end
org.organization_users.each do |user|
next if ($gitea_client.get_orgs_members_by_org_username(org.login, user.login) rescue nil)
$gitea_client.get_orgs_members_by_org_username(org.login, user.login) rescue next
user.destroy!
end
end


Loading…
Cancel
Save