import logger from 'common/logger' ; import { LikerToCivicLikerResolver } from 'definitions' ; const resolver = async ( { id } , _ , { dataSources : { userService } } ) => { const liker = await userService . findLiker ( { userId : id } ) ; if ( ! liker ) { return false ; } try { return await userService . likecoin . isCivicLiker ( { liker } ) ; } catch ( e ) { logger . error ( e ) ; return false ; } } ; export default resolver ;