diff --git a/backend/ts/src/main/scala/aqua/backend/ts/TypeScriptFunc.scala b/backend/ts/src/main/scala/aqua/backend/ts/TypeScriptFunc.scala index 5ef82161..e6192678 100644 --- a/backend/ts/src/main/scala/aqua/backend/ts/TypeScriptFunc.scala +++ b/backend/ts/src/main/scala/aqua/backend/ts/TypeScriptFunc.scala @@ -91,7 +91,7 @@ case class TypeScriptFunc(func: FuncCallable) { | .handleTimeout(() => { | reject('Request timed out for ${func.funcName}'); | }) - | if(${configArgName}?.ttl) { + | if(${configArgName} && ${configArgName}.ttl) { | r.withTTL(${configArgName}.ttl) | } | request = r.build();