Bug Fix:Destroy Repos that We No Longer Have Credentials For (#10056)
This commit is contained in:
parent
8a44eb9421
commit
92b9af0261
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ module GithubRepos
|
|||
info_hash: fetched_repo.to_hash,
|
||||
)
|
||||
repo.user&.touch(:github_repos_updated_at)
|
||||
rescue Github::Errors::NotFound
|
||||
rescue Github::Errors::NotFound, Github::Errors::Unauthorized
|
||||
repo.destroy
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue