mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Correct in/out arguments for cache commands from cgr-console
This commit is contained in:
committed by
Dan Christian Bogos
parent
12c62a3096
commit
e616690c8b
@@ -26,7 +26,7 @@ func init() {
|
||||
c := &CmdCacheGetItemIDs{
|
||||
name: "cache_item_ids",
|
||||
rpcMethod: utils.CacheSv1GetItemIDs,
|
||||
rpcParams: &utils.ArgsGetCacheItemIDs{},
|
||||
rpcParams: &utils.ArgsGetCacheItemIDsWithArgDispatcher{},
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
c.CommandExecuter = &CommandExecuter{c}
|
||||
@@ -36,7 +36,7 @@ func init() {
|
||||
type CmdCacheGetItemIDs struct {
|
||||
name string
|
||||
rpcMethod string
|
||||
rpcParams *utils.ArgsGetCacheItemIDs
|
||||
rpcParams *utils.ArgsGetCacheItemIDsWithArgDispatcher
|
||||
*CommandExecuter
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ func (self *CmdCacheGetItemIDs) RpcMethod() string {
|
||||
|
||||
func (self *CmdCacheGetItemIDs) RpcParams(reset bool) interface{} {
|
||||
if reset || self.rpcParams == nil {
|
||||
self.rpcParams = &utils.ArgsGetCacheItemIDs{}
|
||||
self.rpcParams = &utils.ArgsGetCacheItemIDsWithArgDispatcher{}
|
||||
}
|
||||
return self.rpcParams
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user