mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
4080784310
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 |
||
---|---|---|
.. | ||
Features | ||
mongodb.js | ||
router.js | ||
server.js |