diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-08 18:12:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-08 18:12:33 +0300 |
commit | 6225d57e55eaa0205e939e7ed6577636b0ee47cf (patch) | |
tree | be54b280f0631a1e9c8e767c675e610c65925b2e /lib/api/helpers.rb | |
parent | dcc096f21918399d7061372c0a22b9a5408a00a5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 44ed19b561d..184fe7868a5 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -117,6 +117,8 @@ module API # rubocop: disable CodeReuse/ActiveRecord def find_project(id) + return unless id + projects = Project.without_deleted if id.is_a?(Integer) || id =~ /^\d+$/ |