overleaf/services/chat/app/js
Jakob Ackermann 4080784310 [misc] simplify mongodb collection access using a shared db construct
Resolve the getCollection Promises once and store the result in a shared
 `db` object which can get imported by all the call-sites.

The http server is starting only after a Promise of `waitForDb()`
 resolves. This covers the app code and the acceptance tests:
REF: 586706a9439c3591fc9613dc877f055096ca073a
REF: d026569d2eb4123e30c771a55a001b42d5ade72f
2020-09-10 10:08:30 +01:00
..
Features [misc] simplify mongodb collection access using a shared db construct 2020-09-10 10:08:30 +01:00
mongodb.js [misc] simplify mongodb collection access using a shared db construct 2020-09-10 10:08:30 +01:00
router.js [misc] migrate to native mongo driver 2020-08-19 13:04:47 +01:00
server.js upgrade from metrics-sharelatex to @overleaf/metrics 2020-09-09 10:37:56 +01:00