3
0

Add the float cast function to workflow gval handlers

This commit is contained in:
Tomaž Jerman 2023-01-20 11:52:27 +01:00
parent 183690a61e
commit 0419d0240b

View File

@ -6,6 +6,7 @@ import (
"math/rand"
"github.com/PaesslerAG/gval"
"github.com/cortezaproject/corteza/server/pkg/gvalfnc"
"github.com/spf13/cast"
)
@ -24,6 +25,7 @@ func NumericFunctions() []gval.Language {
gval.Function("average", average),
gval.Function("random", random),
gval.Function("int", toInt64),
gval.Function("float", gvalfnc.CastFloat),
}
}