mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-04 14:40:17 +00:00
Use backwards compatible syntax for config.ttl (#206)
This commit is contained in:
parent
f455716548
commit
c292ce05d7
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user