mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 00:28:44 +05:00
Verbose option is handled in EventExporter
This commit is contained in:
committed by
Dan Christian Bogos
parent
7fbab0c3a2
commit
cb191792e1
@@ -1879,16 +1879,8 @@ func (apierSv1 *APIerSv1) ExportCDRs(args *utils.ArgExportCDRs, reply *map[strin
|
||||
return utils.ErrPartiallyExecuted
|
||||
}
|
||||
// we consider only the last reply because it should have the metrics updated
|
||||
if !args.Verbose {
|
||||
(*reply)[utils.ExporterIDs] = make([]string, 0, len(rplyCdr))
|
||||
for exporterID := range rplyCdr {
|
||||
(*reply)[utils.ExporterIDs] = append((*reply)[utils.ExporterIDs].([]string), exporterID)
|
||||
}
|
||||
} else {
|
||||
for exporterID, metrics := range rplyCdr {
|
||||
(*reply)[exporterID] = metrics
|
||||
}
|
||||
|
||||
for exporterID, metrics := range rplyCdr {
|
||||
(*reply)[exporterID] = metrics
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user