Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fastify): return the response on exception
Fastify requires us to return the response object when handling async methods and dealing with exceptions, otherwise a thenable gets wrapped and improperly handled later causing an exception. This is shown by [this repo][1] and discuessed in [this issue][2]. [1]: https://github.com/sgrigorev/nestjs-compress-issue [2]: fastify/fastify-compress#215 (comment)
- Loading branch information