mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Changed Opts to APIOpts in some structs and fixed multiple integration tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
1b443b5abb
commit
4d4eea8866
@@ -27,7 +27,7 @@ func init() {
|
||||
c := &CmdSetFilter{
|
||||
name: "filter_set",
|
||||
rpcMethod: utils.APIerSv1SetFilter,
|
||||
rpcParams: &engine.FilterWithOpts{},
|
||||
rpcParams: &engine.FilterWithAPIOpts{},
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
c.CommandExecuter = &CommandExecuter{c}
|
||||
@@ -37,7 +37,7 @@ func init() {
|
||||
type CmdSetFilter struct {
|
||||
name string
|
||||
rpcMethod string
|
||||
rpcParams *engine.FilterWithOpts
|
||||
rpcParams *engine.FilterWithAPIOpts
|
||||
*CommandExecuter
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ func (self *CmdSetFilter) RpcMethod() string {
|
||||
|
||||
func (self *CmdSetFilter) RpcParams(reset bool) interface{} {
|
||||
if reset || self.rpcParams == nil {
|
||||
self.rpcParams = &engine.FilterWithOpts{Filter: new(engine.Filter)}
|
||||
self.rpcParams = &engine.FilterWithAPIOpts{Filter: new(engine.Filter)}
|
||||
}
|
||||
return self.rpcParams
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user