add support of FLOW_ID & FLOW_NAME

This commit is contained in:
Hiroyasu Nishiyama 2022-01-25 20:46:01 +09:00
parent 75bcd9e8d5
commit 289815e128
1 changed files with 7 additions and 1 deletions

View File

@ -498,7 +498,13 @@ class Flow {
* @return {[type]} [description]
*/
getSetting(key) {
const flow = this.flow;
const flow = this.flow;
if (key === "FLOW_NAME") {
return flow.label;
}
if (key === "FLOW_ID") {
return flow.id;
}
if (flow.credentials === undefined) {
flow.credentials = credentials.get(flow.id) || {};
}