improved GetActions in ApierV2 (params changes!)

This commit is contained in:
Radu Ioan Fericean
2016-04-29 21:08:10 +03:00
parent d8e789c1a0
commit ac5fddd8ca
7 changed files with 70 additions and 9 deletions

View File

@@ -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
}

View File

@@ -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,