5 Commits (707b55b6a5a08b5c94e769356b0b89a787788cb7)

Author SHA1 Message Date
Peter Jaszkowiak 707b55b6a5 chore: eslint prefer-template 4 years ago
Opliko 41c20761e1
Remove deprecated mongo connection options, fixes #8079 (#8174)
fix #8079 
Unified Topology changes the concept of connecting and causes isConnected to always return true, making any reconnection options useless. Next major version of the driver will remove isConnected entirely.
So:
- reconnect tries
- reconnectInterval
- autoReconnect

Are deprecated and don't really do anything anymore (when unified topology is used at least) other than causing warnings at startup since the 3.4 version of the driver (the current version used by NodeBB is 3.5).

Reference: http://mongodb.github.io/node-mongodb-native/3.5/reference/unified-topology/
5 years ago
Barış Soner Uşaklı 1f0c6f3d60 refactor: async/await mongo 6 years ago
Barış Soner Uşaklı 910b9b8864 fix: #7919, add useUnifiedTopology 6 years ago
Barış Soner Uşaklı 8d4f20865f fix: redis pubsub not being required correctly
split connection logic into separate module
6 years ago