Closed mcollina closed 6 years ago
you can use the onClose hook in fastify to have it take care of shutting down sequelize for you.
onClose
Ref https://github.com/fastify/fastify/blob/master/docs/Hooks.md
added: https://github.com/lyquocnam/fastify-sequelize/commit/569f2346ae1ea60e3542a6b6f5c8a2e50041354f
you can use the
onClose
hook in fastify to have it take care of shutting down sequelize for you.Ref https://github.com/fastify/fastify/blob/master/docs/Hooks.md