mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 16:48:45 +05:00
Tests for re-rating
This commit is contained in:
@@ -143,6 +143,9 @@ func (self *CdrServer) RateCdrs(cgrIds, runIds, tors, cdrHosts, cdrSources, reqT
|
||||
return err
|
||||
}
|
||||
for _, cdr := range cdrs {
|
||||
if cdr.MediationRunId == "" { // raw CDRs which were not calculated before
|
||||
cdr.MediationRunId = utils.META_DEFAULT
|
||||
}
|
||||
if err := self.rateStoreStatsReplicate(cdr); err != nil {
|
||||
utils.Logger.Err(fmt.Sprintf("<CDRS> Processing CDR %+v, got error: %s", cdr, err.Error()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user