diff options
Diffstat (limited to 'app/graphql/resolvers/projects/jira_imports_resolver.rb')
-rw-r--r-- | app/graphql/resolvers/projects/jira_imports_resolver.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/graphql/resolvers/projects/jira_imports_resolver.rb b/app/graphql/resolvers/projects/jira_imports_resolver.rb index e7403745bea..9f71d4f187e 100644 --- a/app/graphql/resolvers/projects/jira_imports_resolver.rb +++ b/app/graphql/resolvers/projects/jira_imports_resolver.rb @@ -8,11 +8,9 @@ module Resolvers alias_method :project, :object def resolve(**args) - return JiraImportData.none unless project&.import_data.present? - authorize!(project) - project.import_data.becomes(JiraImportData).projects + project.jira_imports end def authorized_resource?(project) |