app/src/app.js
Function init
has 66 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 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function onDbReady(err) {
if (err) {
if (retries >= 0) {
retries--;
logger.error(`Failed to connect to MongoDB uri ${mongoUri} with error message "${err.message}", retrying...`);