mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 13:49:53 +05:00
ApierV2.LoadTariffPlanFromFolder with support for returning loadInstance data, various localtest cache tests fixes
This commit is contained in:
@@ -1328,12 +1328,12 @@ func (tpr *TpReader) WriteToDatabase(flush, verbose bool) (err error) {
|
||||
log.Print("\t", al.GetId())
|
||||
}
|
||||
}
|
||||
ldInst := tpr.GetLoadInstance()
|
||||
if verbose {
|
||||
ldInst := tpr.GetLoadInstance()
|
||||
log.Printf("LoadHistory, instance: %+v\n", ldInst)
|
||||
if err = tpr.accountingStorage.AddLoadHistory(ldInst, tpr.loadHistSize); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if err = tpr.accountingStorage.AddLoadHistory(ldInst, tpr.loadHistSize); err != nil {
|
||||
return err
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user