wheresvic / mongoose-field-encryption

A simple symmetric encryption plugin for individual fields. Dependency free, only mongoose peer dependency.
MIT License
74 stars 32 forks source link

Take out next within pre init mongoose method since deprecated in mongoose 5.0.0 #15

Closed orsiemilio closed 6 years ago

orsiemilio commented 6 years ago

Acording to this you should take out the next paramenter when using pre 'init' method. https://github.com/Automattic/mongoose/blob/master/migrating_to_5.md#init-hook-signatures I test it localy by simply deleting it and seams to work fine.. I don't really test it but I think is enough.

devdoomari3 commented 6 years ago

see #16 it's a temporary measure btw

wheresvic commented 6 years ago

Thanks to @devdoomari3 this is now fixed