This commit is contained in:
Marco Lettere 2021-11-23 12:22:29 +01:00
parent fd42f668f8
commit 08511adf6b
1 changed files with 2 additions and 2 deletions

View File

@ -101,8 +101,8 @@
"taskReferenceName": "extract_context",
"type": "LAMBDA",
"inputParameters": {
"client" : "${lookup_context.output.body}",
"scriptExpression": "function e(v){ return (v.length === 0)}; if(e($.client)) throw('Workspace client not found'); else return { client : $.client[0], id : $.client[0].id}"
"client" : "${lookup_context.output.body[0]}",
"scriptExpression": "function e(v){ return (v == null || v == undefined)}; if(e($.client)) throw('Workspace client not found'); else return { client : $.client, id : $.client.id}"
}
},
{