mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 08:38:45 +05:00
Fixed DispatcherHost related struct fields, added/fixed some tests and redesigned some functions in model_helpers.go
This commit is contained in:
committed by
Dan Christian Bogos
parent
2e3bc90c2a
commit
11d267b3d5
@@ -971,7 +971,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