From 0a3d8712923825f4c1262f0e2acbcd0830c4cf57 Mon Sep 17 00:00:00 2001 From: David Luecke Date: Tue, 3 Jul 2018 11:50:16 -0700 Subject: [PATCH] Fix params.sequelize example --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index bd9a22b..2babda8 100644 --- a/README.md +++ b/README.md @@ -58,10 +58,13 @@ app.service('messages').hooks({ find(context) { // Get the Sequelize instance. In the generated application via: const sequelize = context.app.get('sequelizeClient'); + const { User } = sequelize.models; context.params.sequelize = { include: [ User ] } + + return context; } } });