modernize group_add/delete and invitation accepted

This commit is contained in:
Marco Lettere 2023-10-12 16:21:59 +02:00
parent 730c7f7f43
commit f6e3e0f250
1 changed files with 2 additions and 2 deletions

View File

@ -99,11 +99,11 @@
"name": "INLINE_TASK", "name": "INLINE_TASK",
"taskReferenceName": "extract_group", "taskReferenceName": "extract_group",
"type": "INLINE", "type": "INLINE",
"evaluatorType" : "javascript",
"inputParameters": { "inputParameters": {
"tree" : "${init.output.result.tree}", "tree" : "${init.output.result.tree}",
"groups" : "${look_up_groups.output.body}", "groups" : "${look_up_groups.output.body}",
"scriptExpression": "function selectByPath(groups, path, level) { for (var i=0; i < groups.length; i++) {if (groups[i].name === path[level]) {if (level === path.length - 1) return groups[i];return selectByPath(groups[i].subGroups, path, level+1)}} return null; } function f() { return { 'group' : selectByPath($.groups, $.tree, 0)}} f()" "expression": "function selectByPath(groups, path, level) { for (var i=0; i < groups.length; i++) {if (groups[i].name === path[level]) {if (level === path.length - 1) return groups[i];return selectByPath(groups[i].subGroups, path, level+1)}} return null; } function f() { return { 'group' : selectByPath($.groups, $.tree, 0)}} f()",
"evaluatorType" : "javascript"
} }
}, },
{ {