Fixed typo in MySQL error handling

This commit is contained in:
Logan Cusano
2023-05-03 22:29:46 -04:00
parent 64bee8c561
commit bf461bd5a9

View File

@@ -55,7 +55,7 @@ function runSQL(sqlQuery, connection, callback = (err, rows) => {
return callback(err, undefined);
}
log.WARN(`Database connection is unavailable, waiting ${ retryTimeout / 1000 } seconds...`);
retry += 1
_retry += 1
// Wait for the retry timeout before trying the query again
setTimeout(runSQL(sqlQuery, connection, callback, _retry));
}