mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 05:09:54 +05:00
fix wrong NOT_FOUND error when removing account
This commit is contained in:
@@ -157,6 +157,9 @@ func (self *ApierV1) SetAccount(attr utils.AttrSetAccount, reply *string) error
|
||||
// clean previous action plans
|
||||
actionPlansMap, err := self.RatingDb.GetAllActionPlans()
|
||||
if err != nil {
|
||||
if err == utils.ErrNotFound { // if no action plans just continue
|
||||
return 0, nil
|
||||
}
|
||||
return 0, err
|
||||
}
|
||||
var dirtyAps []string
|
||||
|
||||
Reference in New Issue
Block a user