issue #45 - implement setNext changes to allow its usage within pre-s…#46
issue #45 - implement setNext changes to allow its usage within pre-s…#46rernens wants to merge 1 commit intoramiel:developfrom
Conversation
… pre-save hook
1 similar comment
|
Hello @rernens , sorry for coming back so late to you but I had no time at all to look at this. I ned to fin the time to look at it carefully. Maybe you could add some test case? Also, if you need it in your projects you can include it in your dependencies like this in your package.json I'm sure you already know. |
|
So, your intent is to make this kind of calls? this.setNext('employees_counter', false, (err) => {
...
});and so the save won't be called? I understand. I also remember that a previous version of this plugin did not save and you had to call save explicitely. I think this PR is a good idea. It needs some test and an update to the documentation. I hope you can do it or I must take over whenever I'll have time. |
|
Hi Fabrizio You are right, this PR allows to keep the current behavior as well as integrating the required behavior to use setNext within a pre-save hook. I am using it in a web app that went live yesterday. While as busy as you are, I will try to find some time over the next 72 hours, to change the doc and write some test. |
|
Hi guys, any update on this PR? We need this please... |
Allow use a setNext within the pre-save hook in making save optional through new args.
Preserve current behaviour in making save the default behaviour if no arg set