Add Flow.getSetting for resolving env-var properties

This lays the groundwork for subflow-specific settings
This commit is contained in:
Nick O'Leary
2019-01-16 22:38:04 +00:00
parent 81f4e0de56
commit 6286b34d00
6 changed files with 38 additions and 15 deletions

View File

@@ -677,7 +677,8 @@ function removeFlow(id) {
const flowAPI = {
getNode: getNode,
handleError: () => false,
handleStatus: () => false
handleStatus: () => false,
getSetting: k => process.env[k]
}