mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 13:49:53 +05:00
Correct handle error in acse of APIerSv1.GetActionTriggers
This commit is contained in:
committed by
Dan Christian Bogos
parent
2116571e57
commit
d0430f0545
@@ -478,6 +478,9 @@ func (api *APIerSv1) GetActionTriggers(attr AttrGetActionTriggers, atrs *engine.
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if len(keys) == 0 {
|
||||
return utils.ErrNotFound
|
||||
}
|
||||
for _, key := range keys {
|
||||
getAttrs, err := api.DataManager.GetActionTriggers(key[len(utils.ACTION_TRIGGER_PREFIX):], false, utils.NonTransactional)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user