apache / security-vulnogram

Vulnogram is a tool for creating and editing CVE information in CVE JSON format
https://vulnogram.github.io/
MIT License
5 stars 4 forks source link

update use of deprecated method #104

Open raboof opened 1 year ago

raboof commented 1 year ago

on startup:

DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.

when saving:

DeprecationWarning: Mongoose: `findOneAndUpdate()` and `findOneAndDelete()` without the `useFindAndModify` option set to false are deprecated. See: https://mongoosejs.com/docs/deprecations.html#findandmodify