express-sequelize-user
Created for https://github.com/bkniffler/sequelize-revisions
Expose sequelize query functions in express requests that inject the current user in returned objects. Should work with findAll, findById, findOne, findOrInitialize, findOrCreate, create, build.
Install
npm install express-sequelize-user --save
Usage
// Bind middlewares...app;app;// Step 1: Bind express-sequelize-userapp;... var User = sequelize; // Expose put userapp; // Add a hookUser;