Skip to content

Commit

Permalink
Always return DefaultMessage as the type.
Browse files Browse the repository at this point in the history
The other types are disabled right now, so returning them throws wonky errors.
  • Loading branch information
chmac committed May 16, 2019
1 parent e946c69 commit bcf61c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/schema/message/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const typeMap = {
};

const resolvers = {
__resolveType: (obj) => typeMap[obj.value.content.type] || 'DefaultMessage',
// __resolveType: (obj) => typeMap[obj.value.content.type] || 'DefaultMessage',
__resolveType: (obj) => 'DefaultMessage',
...DefaultMessage,
}

Expand Down

0 comments on commit bcf61c6

Please sign in to comment.