ignore invalidated repos
This commit is contained in:
parent
4c90d7c12c
commit
d831597cc2
|
@ -12,7 +12,7 @@ module Travis::API::V3
|
||||||
|
|
||||||
def by_slug
|
def by_slug
|
||||||
owner_name, name = slug.split('/')
|
owner_name, name = slug.split('/')
|
||||||
Models::Repository.where(owner_name: owner_name, name: name).first
|
Models::Repository.where(owner_name: owner_name, name: name, invalidated_at: nil).first
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user