Fix toJSON responses #24

Merged
joeybaker merged 1 commits from use-json into master 2016-09-08 18:33:48 +00:00

1 Commits

Author SHA1 Message Date
Joey Baker
4e078f5ba5 Fix toJSON responses
This is a non-obvious one. Hapi is happy to convert raw sequelize
instances to proper JSON (likely because Sequelize does nice things),
but we do that, we can't use `config.response.schema`, because it
receives the full sequelize instance instead of JSON.

This is a patch release.
2016-09-07 21:06:34 -07:00