mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 16:18:44 +05:00
started value formula
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"log"
|
||||
_ "net/http/pprof"
|
||||
"os"
|
||||
"runtime"
|
||||
"runtime/pprof"
|
||||
|
||||
@@ -211,7 +211,6 @@ func startRater(internalRaterChan chan rpcclient.RpcClientConnection, cacheDoneC
|
||||
utils.RegisterRpcParams("PubSubV1", &engine.PubSub{})
|
||||
utils.RegisterRpcParams("AliasesV1", &engine.AliasHandler{})
|
||||
utils.RegisterRpcParams("UsersV1", &engine.UserMap{})
|
||||
utils.RegisterRpcParams("UsersV1", &engine.UserMap{})
|
||||
utils.RegisterRpcParams("", &v1.CdrsV1{})
|
||||
utils.RegisterRpcParams("", &v2.CdrsV2{})
|
||||
utils.RegisterRpcParams("", &v1.SessionManagerV1{})
|
||||
@@ -219,6 +218,6 @@ func startRater(internalRaterChan chan rpcclient.RpcClientConnection, cacheDoneC
|
||||
utils.RegisterRpcParams("", responder)
|
||||
utils.RegisterRpcParams("", apierRpcV1)
|
||||
utils.RegisterRpcParams("", apierRpcV2)
|
||||
|
||||
utils.GetRpcParams("")
|
||||
internalRaterChan <- responder // Rater done
|
||||
}
|
||||
|
||||
@@ -482,7 +482,7 @@ func (mig MigratorRC8) migrateActions() error {
|
||||
bf.Type = utils.StringPointer(oldAc.BalanceType)
|
||||
}
|
||||
if oldAc.Balance.Value != 0 {
|
||||
bf.Value = utils.Float64Pointer(oldAc.Balance.Value)
|
||||
bf.Value = &engine.ValueFormula{Static: oldAc.Balance.Value}
|
||||
}
|
||||
if oldAc.Balance.RatingSubject != "" {
|
||||
bf.RatingSubject = utils.StringPointer(oldAc.Balance.RatingSubject)
|
||||
|
||||
@@ -364,7 +364,7 @@ func (mig MigratorRC8) migrateActionsInt() error {
|
||||
bf.Type = utils.StringPointer(oldAc.BalanceType)
|
||||
}
|
||||
if oldAc.Balance.Value != 0 {
|
||||
bf.Value = utils.Float64Pointer(oldAc.Balance.Value)
|
||||
bf.Value = &engine.ValueFormula{Static: oldAc.Balance.Value}
|
||||
}
|
||||
if oldAc.Balance.RatingSubject != "" {
|
||||
bf.RatingSubject = utils.StringPointer(oldAc.Balance.RatingSubject)
|
||||
|
||||
Reference in New Issue
Block a user