mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 07:08:45 +05:00
improved GetActions in ApierV2 (params changes!)
This commit is contained in:
@@ -204,6 +204,7 @@ func NewCodecMsgpackMarshaler() *CodecMsgpackMarshaler {
|
||||
cmm := &CodecMsgpackMarshaler{new(codec.MsgpackHandle)}
|
||||
mh := cmm.mh
|
||||
mh.MapType = reflect.TypeOf(map[string]interface{}(nil))
|
||||
mh.RawToString = true
|
||||
return cmm
|
||||
}
|
||||
|
||||
|
||||
@@ -514,7 +514,7 @@ func (tpr *TpReader) LoadActions() (err error) {
|
||||
}
|
||||
}
|
||||
acts[idx] = &Action{
|
||||
Id: tag + strconv.Itoa(idx),
|
||||
Id: tag,
|
||||
ActionType: tpact.Identifier,
|
||||
//BalanceType: tpact.BalanceType,
|
||||
Weight: tpact.Weight,
|
||||
@@ -990,7 +990,7 @@ func (tpr *TpReader) LoadAccountActionsFiltered(qriedAA *TpAccountAction) error
|
||||
}
|
||||
}
|
||||
acts[idx] = &Action{
|
||||
Id: tag + strconv.Itoa(idx),
|
||||
Id: tag,
|
||||
ActionType: tpact.Identifier,
|
||||
//BalanceType: tpact.BalanceType,
|
||||
Weight: tpact.Weight,
|
||||
@@ -1338,7 +1338,7 @@ func (tpr *TpReader) LoadCdrStatsFiltered(tag string, save bool) (err error) {
|
||||
}
|
||||
}
|
||||
acts[idx] = &Action{
|
||||
Id: tag + strconv.Itoa(idx),
|
||||
Id: tag,
|
||||
ActionType: tpact.Identifier,
|
||||
//BalanceType: tpact.BalanceType,
|
||||
Weight: tpact.Weight,
|
||||
|
||||
Reference in New Issue
Block a user