{"size": 468, "ext": "js", "max_stars_repo_path": "src/store/actions/unBlockUser.js", "max_stars_repo_name": "camplight/hylo-evo", "max_stars_repo_stars_event_min_datetime": "2020-05-11T01:56:17.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-09T16:13:42.000Z", "max_issues_repo_path": "src/store/actions/unBlockUser.js", "max_issues_repo_name": "camplight/hylo-evo", "max_issues_repo_issues_event_min_datetime": "2020-05-02T02:39:34.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T18:39:48.000Z", "max_forks_repo_path": "src/store/actions/unBlockUser.js", "max_forks_repo_name": "camplight/hylo-evo", "max_forks_repo_forks_event_min_datetime": "2020-08-14T10:16:17.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-08T00:09:57.000Z"}
{"max_stars_count": 17, "max_issues_count": 674, "max_forks_count": 4, "avg_line_length": 21.2727272727, "max_line_length": 54, "alphanum_fraction": 0.6025641026}
import { AnalyticsEvents } from 'hylo-utils/constants'
import { UNBLOCK_USER } from '../constants'

export default function unBlockUser (blockedUserId) {
  return {
    type: UNBLOCK_USER,
    graphql: {
      query: `mutation ($blockedUserId: ID) {
        unblockUser (blockedUserId: $blockedUserId) {
          success
        }
      }`,
      variables: {
        blockedUserId
      }
    },
    meta: {
      analytics: AnalyticsEvents.UNBLOCK_USER
    }
  }
}
