mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
[misc] simplify the naming around waiting for a mongo connection
Co-Authored-By: Eric Mc Sween <eric.mcsween@overleaf.com> Co-Authored-By: Miguel Serrano <mserranom@gmail.com> Co-Authored-By: Simon Detheridge <s@sd.ai>
This commit is contained in:
co-authored by
Eric Mc Sween
Miguel Serrano
Simon Detheridge
parent
d345911730
commit
39ea30355e
@@ -23,7 +23,8 @@ if (!module.parent) {
|
||||
settings.internal != null ? settings.internal.chat : undefined,
|
||||
(x1) => x1.host
|
||||
) || 'localhost'
|
||||
mongodb.clientConnecting
|
||||
mongodb
|
||||
.waitForDb()
|
||||
.then(() => {
|
||||
Server.server.listen(port, host, function (err) {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user