mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Replaced hardcoded strings with consts in RPC.Call methods
This commit is contained in:
committed by
Dan Christian Bogos
parent
413e47ff37
commit
d1787cb3fa
@@ -18,12 +18,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
|
||||
package console
|
||||
|
||||
import "github.com/cgrates/cgrates/apier/v1"
|
||||
import (
|
||||
v1 "github.com/cgrates/cgrates/apier/v1"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
)
|
||||
|
||||
func init() {
|
||||
c := &CmdSetTriggers{
|
||||
name: "triggers_set",
|
||||
rpcMethod: "ApierV1.SetActionTrigger",
|
||||
rpcMethod: utils.ApierV1SetActionTrigger,
|
||||
rpcParams: &v1.AttrSetActionTrigger{},
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
|
||||
Reference in New Issue
Block a user