mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-19 22:28:45 +05:00
Remove publish account action from ApierV1.RemoveBalance
This commit is contained in:
committed by
Dan Christian Bogos
parent
75eb2183e1
commit
63c3c44e48
@@ -625,9 +625,6 @@ func (self *ApierV1) RemoveBalances(attr *utils.AttrSetBalance, reply *string) e
|
||||
if attr.TimingIds != nil {
|
||||
a.Balance.TimingIDs = utils.StringMapPointer(utils.ParseStringMap(*attr.TimingIds))
|
||||
}
|
||||
publishAction := &engine.Action{
|
||||
ActionType: engine.MetaPublishAccount, // here we add *publish_account because balance was deleted
|
||||
}
|
||||
at.SetActions(engine.Actions{a, publishAction})
|
||||
if err := at.Execute(nil, nil); err != nil {
|
||||
*reply = err.Error()
|
||||
|
||||
Reference in New Issue
Block a user