Added missing return code in interface.execSQLQuery

This commit is contained in:
Luca 2026-04-08 14:11:37 +02:00
parent ba9551baff
commit d8bf334ea7
7 changed files with 27 additions and 19 deletions

View file

@ -410,9 +410,11 @@ function as_utils.retrieveASHistoricalTraffic(options)
") GROUP BY asn", where, ternary(isEmptyString(src_asn_filters), "", " AND " .. src_asn_filters), where,
ternary(isEmptyString(dst_asn_filters), "", " AND " .. dst_asn_filters))
local historical_asn_stats = interface.execSQLQuery(query) or {}
local historical_asn_stats,err = interface.execSQLQuery(query)
local asn_stats = {}
historical_asn_stats = historical_asn_stats or {}
if (perform_profiling) then
traceError(TRACE_NORMAL, TRACE_CONSOLE,
string.format("[ASN Profiling][Time: %s] End request to DB (Historical)\n", os.time()))