Use backwards compatible syntax for config.ttl (#206)

This commit is contained in:
folex 2021-07-17 17:33:19 +03:00 committed by GitHub
parent f455716548
commit c292ce05d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();