mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Added extra configurable fields for DispatcherHost related structs, corresponding tests and redesigned methods where needed
This commit is contained in:
committed by
Dan Christian Bogos
parent
bf78386bf2
commit
016e913190
@@ -1544,7 +1544,10 @@ func (sqls *SQLStorage) GetTPDispatcherHosts(tpid, tenant, id string) ([]*utils.
|
||||
if err := q.Find(&dpps).Error; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
arls := dpps.AsTPDispatcherHosts()
|
||||
arls, err := dpps.AsTPDispatcherHosts()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if len(arls) == 0 {
|
||||
return arls, utils.ErrNotFound
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user