From b43ffcd7be21016bb00d0ca7991cf3236f26bf87 Mon Sep 17 00:00:00 2001 From: DanB Date: Mon, 19 Mar 2018 17:30:50 +0100 Subject: [PATCH] Corrected help maxusage in console --- console/maxusage.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/console/maxusage.go b/console/maxusage.go index f49858d6d..f8a747c47 100644 --- a/console/maxusage.go +++ b/console/maxusage.go @@ -24,6 +24,9 @@ func init() { c := &CmdGetMaxUsage{ name: "maxusage", rpcMethod: "ApierV1.GetMaxUsage", + clientArgs: []string{"ToR", "RequestType", "Tenant", + "Category", "Account", "Subject", "Destination", + "SetupTime", "AnswerTime", "Usage", "ExtraFields"}, } commands[c.Name()] = c c.CommandExecuter = &CommandExecuter{c} @@ -48,7 +51,7 @@ func (self *CmdGetMaxUsage) RpcMethod() string { func (self *CmdGetMaxUsage) RpcParams(reset bool) interface{} { if reset || self.rpcParams == nil { - self.rpcParams = &engine.UsageRecord{} + self.rpcParams = new(engine.UsageRecord) } return self.rpcParams }