small load destination fix

This commit is contained in:
Radu Ioan Fericean
2014-09-10 18:07:43 +03:00
parent 6ecabf1d90
commit 4d2ff245ad

View File

@@ -183,7 +183,7 @@ func (self *ApierV1) LoadDestination(attrs AttrLoadDestination, reply *string) e
if missing := utils.MissingStructFields(&attrs, []string{"TPid", "DestinationId"}); len(missing) != 0 {
return fmt.Errorf("%s:%v", utils.ERR_MANDATORY_IE_MISSING, missing)
}
if attrs.DestinationId == utils.ANY {
if attrs.DestinationId == utils.EMPTY {
attrs.DestinationId = ""
}
dbReader := engine.NewDbReader(self.StorDb, self.RatingDb, self.AccountDb, attrs.TPid)