mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 05:39:54 +05:00
fixed no new variable
This commit is contained in:
@@ -40,7 +40,7 @@ func (self *ApierV1) AddAccountActionTriggers(attr AttrAddAccountActionTriggers,
|
||||
}
|
||||
accID := utils.AccountKey(attr.Tenant, attr.Account)
|
||||
var account *engine.Account
|
||||
_, err := engine.Guardian.Guard(func() (interface{}, error) {
|
||||
_, err = engine.Guardian.Guard(func() (interface{}, error) {
|
||||
if acc, err := self.AccountDb.GetAccount(accID); err == nil {
|
||||
account = acc
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user