diff --git a/databases/influx_sql.js b/databases/influx_sql.js index 9692ac9..dd96146 100644 --- a/databases/influx_sql.js +++ b/databases/influx_sql.js @@ -234,12 +234,13 @@ export const fetchActData = async (opts) => { // Transform data to add E10tel_eq field for compatibility with Flux version // E10tel_eq = 10^(LA_max/10) + if (opts.data !== 'live') { result.values = result.values.map(record => ({ ...record, E10tel_eq: record.LA_max !== null && record.LA_max !== undefined ? Math.pow(10, record.LA_max / 10) : null - })) + }))} return result }