sails-hook-sequelize-blueprints icon indicating copy to clipboard operation
sails-hook-sequelize-blueprints copied to clipboard

Model Hooks

Open danofsteele opened this issue 8 years ago • 2 comments

Hi, thanks for the hook. I'm running 0.3.0. We're trying to run Sails as a proof of concept, with Sequelize as the ORM.

I'm not currently seeing any of the hooks after step 3 of the order of operations firing. I'm trying to hook into the afterUpdate event. Is this expected?

danofsteele avatar Apr 12 '16 15:04 danofsteele

That's weird, i've tried to work without this sails-hook with express-sequelize example, and it seems afterUpdate and afterDestroy is not working properly, but afterCreate and beforeCreate works, and also works with this hook, seems a sequelize issue? or i might missed something?

Do you know how the afterUpdate and afterDestroy works? I stuck at it. https://gist.github.com/cesardeazevedo/62d87a60c5004ff24936adb007852e58

cesardeazevedo avatar Apr 13 '16 00:04 cesardeazevedo

I've not had too much time to investigate, but it would appear to be a problem with a dependency, rather than you hook?

danofsteele avatar Apr 13 '16 08:04 danofsteele