WhiteflagProtocol / whiteflag-api

Reference implementation of the Whiteflag protocol in Node.js that acts as an API to connect applications with the underlying blockchains
https://api.whiteflagprotocol.org
Other
4 stars 5 forks source link

Upgrade MongoDB module #11

Closed ts5746 closed 4 years ago

ts5746 commented 4 years ago

Upgrade the MongoDB module used by the Whiteflag API to version 3.1.13 or later, as advised by this NPM advisory: https://www.npmjs.com/advisories/1203. Note that for a properly configured setup, this issue should not impact the current Whiteflag API versions 1.0.0-alpha.3 and below, because the database and collections are only configured once and the database configuration cannot be influenced by action external to the API.

ts5746 commented 4 years ago

Updated MongoDB module to version 3.5.3, refactored related code and tested in the dev/mongodb branch. Tested and merged into develop in 02027f4eb4b5739d8f65e63e287f9ff9bcce9b88.