mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Update account nill pointer
This commit is contained in:
committed by
Dan Christian Bogos
parent
905d88cedb
commit
4efb4e0f78
@@ -342,7 +342,7 @@ func (self *ApierV1) RemoveAccount(attr utils.AttrRemoveAccount, reply *string)
|
||||
return err
|
||||
}
|
||||
|
||||
if err = self.DataManager.CacheDataFromDB(utils.AccountActionPlansPrefix, []string{accID}, true); err.Error() != utils.ErrNotFound.Error() || err != nil {
|
||||
if err = self.DataManager.CacheDataFromDB(utils.AccountActionPlansPrefix, []string{accID}, true); err == nil || err.Error() != utils.ErrNotFound.Error() {
|
||||
return err
|
||||
}
|
||||
*reply = OK
|
||||
|
||||
Reference in New Issue
Block a user