mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Fix for rename from ResourceLimit -> Resource
This commit is contained in:
@@ -56,7 +56,7 @@ var fileHandlers = map[string]func(*TPCSVImporter, string) error{
|
||||
utils.LCRS_CSV: (*TPCSVImporter).importLcrs,
|
||||
utils.USERS_CSV: (*TPCSVImporter).importUsers,
|
||||
utils.ALIASES_CSV: (*TPCSVImporter).importAliases,
|
||||
utils.ResourcesCsv: (*TPCSVImporter).importResourceLimits,
|
||||
utils.ResourcesCsv: (*TPCSVImporter).importResources,
|
||||
utils.StatsCsv: (*TPCSVImporter).importStats,
|
||||
utils.ThresholdsCsv: (*TPCSVImporter).importThresholds,
|
||||
}
|
||||
@@ -351,15 +351,15 @@ func (self *TPCSVImporter) importAliases(fn string) error {
|
||||
return self.StorDb.SetTPAliases(tps)
|
||||
}
|
||||
|
||||
func (self *TPCSVImporter) importResourceLimits(fn string) error {
|
||||
func (self *TPCSVImporter) importResources(fn string) error {
|
||||
if self.Verbose {
|
||||
log.Printf("Processing file: <%s> ", fn)
|
||||
}
|
||||
rls, err := self.csvr.GetTPResource(self.TPid, "")
|
||||
rls, err := self.csvr.GetTPResources(self.TPid, "")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return self.StorDb.SetTPResource(rls)
|
||||
return self.StorDb.SetTPResources(rls)
|
||||
}
|
||||
|
||||
func (self *TPCSVImporter) importStats(fn string) error {
|
||||
|
||||
Reference in New Issue
Block a user