summaryrefslogtreecommitdiff
path: root/app/graphql/resolvers/environments_resolver.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/resolvers/environments_resolver.rb')
-rw-r--r--app/graphql/resolvers/environments_resolver.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/graphql/resolvers/environments_resolver.rb b/app/graphql/resolvers/environments_resolver.rb
index ed3395d05aa..df04e70e250 100644
--- a/app/graphql/resolvers/environments_resolver.rb
+++ b/app/graphql/resolvers/environments_resolver.rb
@@ -21,7 +21,7 @@ module Resolvers
def resolve(**args)
return unless project.present?
- EnvironmentsFinder.new(project, context[:current_user], args).find
+ EnvironmentsFinder.new(project, context[:current_user], args).execute
rescue EnvironmentsFinder::InvalidStatesError => exception
raise Gitlab::Graphql::Errors::ArgumentError, exception.message
end