app/src/app.js
Function init
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function init() {
return new Promise((resolve, reject) => {
async function onDbReady(err) {
if (err) {
if (retries >= 0) {
Function onDbReady
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function onDbReady(err) {
if (err) {
if (retries >= 0) {
retries -= 1;
logger.error(`Failed to connect to MongoDB uri ${mongoUri}, retrying...`);