app/src/presenters/terraiPresenter.js
Function transform
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static async transform(results) {
results.alert_count = results.value;
let uri = `/query${results.downloadUrls.csv.split('download')[1]}`;
uri = uri.replace('ORDER BY year, day', ' ORDER BY day DESC, year DESC LIMIT 10').replace(/&format=(csv|json|xml)/g, '');