mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
fix for scheduler_queue console command
This commit is contained in:
@@ -24,7 +24,7 @@ func init() {
|
||||
c := &CmdGetScheduledActions{
|
||||
name: "scheduler_queue",
|
||||
rpcMethod: "ApierV1.GetScheduledActions",
|
||||
rpcParams: &v1.AttrsGetScheduledActions{},
|
||||
rpcParams: []*v1.AttrsGetScheduledActions{},
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
c.CommandExecuter = &CommandExecuter{c}
|
||||
@@ -34,7 +34,7 @@ func init() {
|
||||
type CmdGetScheduledActions struct {
|
||||
name string
|
||||
rpcMethod string
|
||||
rpcParams *v1.AttrsGetScheduledActions
|
||||
rpcParams []*v1.AttrsGetScheduledActions
|
||||
*CommandExecuter
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ func (self *CmdGetScheduledActions) RpcMethod() string {
|
||||
|
||||
func (self *CmdGetScheduledActions) RpcParams(reset bool) interface{} {
|
||||
if reset || self.rpcParams == nil {
|
||||
self.rpcParams = &v1.AttrsGetScheduledActions{}
|
||||
self.rpcParams = make([]*v1.AttrsGetScheduledActions, 0)
|
||||
}
|
||||
return self.rpcParams
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user