mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
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