mirror of
https://github.com/fluencelabs/aqua.git
synced 2025-04-24 22:42:13 +00:00
Replace null to undefined in json to register services and functions properly (#335)
This commit is contained in:
parent
2f1d5a0760
commit
9933b38ded
@ -53,7 +53,7 @@ case class OutputFunc(func: FuncRes, types: Types) {
|
||||
| `
|
||||
| return callFunction(
|
||||
| args,
|
||||
| ${funcDef.asJson.spaces4},
|
||||
| ${funcDef.asJson.deepDropNullValues.spaces4},
|
||||
| script
|
||||
| )
|
||||
|}""".stripMargin
|
||||
|
@ -29,7 +29,7 @@ case class OutputService(srv: ServiceRes, types: Types) {
|
||||
|export function register${srv.name}(${typed("...args", "any")}) {
|
||||
| registerService(
|
||||
| args,
|
||||
| ${serviceDef.asJson.spaces4}
|
||||
| ${serviceDef.asJson.deepDropNullValues.spaces4}
|
||||
| );
|
||||
|}
|
||||
""".stripMargin
|
||||
|
Loading…
x
Reference in New Issue
Block a user