-
-
Notifications
You must be signed in to change notification settings - Fork 15
Migration guide
Felipe edited this page Mar 5, 2018
·
4 revisions
- Uninstall hapi-sequelize:
npm uninstall --save hapi-sequelize
- Install hapi-sequelizejs:
npm install --save hapi-sequelizejs
- Update your
server.register
to require the new package:
server.register([
{
register: require('hapi-sequelizejs'),
options: [...]
}
]);
- Update your controllers to use the correct plugin name to get the DB instance:
request.server.plugins['hapi-sequelizejs']