diff options
Diffstat (limited to 'app/graphql/resolvers/bulk_labels_resolver.rb')
-rw-r--r-- | app/graphql/resolvers/bulk_labels_resolver.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/graphql/resolvers/bulk_labels_resolver.rb b/app/graphql/resolvers/bulk_labels_resolver.rb index 7362e257fb6..d7e9564352d 100644 --- a/app/graphql/resolvers/bulk_labels_resolver.rb +++ b/app/graphql/resolvers/bulk_labels_resolver.rb @@ -9,7 +9,7 @@ module Resolvers def resolve authorize!(object) - BatchLoader::GraphQL.for(object.id).batch(cache: false) do |ids, loader, args| + BatchLoader::GraphQL.for(object.id).batch(key: object.class.name, cache: false) do |ids, loader, args| labels = Label.for_targets(object.class.id_in(ids)).group_by(&:target_id) ids.each do |id| |