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

Bug in example code #35

Closed ronaldl29 closed 4 years ago

ronaldl29 commented 4 years ago

Line 51 of README.md is: PostSchema.plugin(mongooseFieldEncyption, { fields: ["message", "references"], secret: "some secret key" });

It should be: PostSchema.plugin(mongooseFieldEncryption, { fields: ["message", "references"], secret: "some secret key" });

wheresvic commented 4 years ago

Whoops - thanks for pointing that out! Fixed now :)