zenbot
zenbot copied to clipboard
mongo error
found error running zenbot on Centos 7 (node:3869) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. fetching pre-roll data: (node:3869) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead. (node:3882) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. (node:3882) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead. (node:3882) DeprecationWarning: collection.save is deprecated. Use insertOne, insertMany, updateOne, or updateMany instead.
These are warnings you can ignore for now. They can be resolved, though.
Since the #1725 is pointing to here:
This is the latest warning I get after updating the bot and rebuilding NPM: (node:11568) DeprecationWarning: collection.save is deprecated. Use insertOne, insertMany, updateOne, or updateMany instead.