Skip to content

Commit

Permalink
Fixed has_metadata check
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahscott committed Jun 3, 2016
1 parent bd7e1e7 commit b2252f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schema/artist/index.js
Expand Up @@ -84,8 +84,8 @@ const ArtistType = new GraphQLObjectType({
},
has_metadata: {
type: GraphQLBoolean,
resolve: ({ bio, blurb }) => {
return !!(bio || blurb);
resolve: ({ blurb, nationality, years, hometown, location }) => {
return !!(blurb || nationality || years || hometown || location);
},
},
hometown: {
Expand Down

0 comments on commit b2252f8

Please sign in to comment.