debian-mirror-gitlab/app/graphql/resolvers/down_votes_count_resolver.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
276 B
Ruby
Raw Normal View History

2022-11-25 23:54:43 +05:30
# frozen_string_literal: true
module Resolvers
2023-06-20 00:43:36 +05:30
class DownVotesCountResolver < Resolvers::AwardEmoji::BaseVotesCountResolver
2022-11-25 23:54:43 +05:30
type GraphQL::Types::Int, null: true
def resolve
authorize!(object)
2023-06-20 00:43:36 +05:30
votes_batch_loader.load_downvotes(object)
2022-11-25 23:54:43 +05:30
end
end
end