diff --git a/jobs/expression.js b/jobs/expression.js index 4ea4583..e63dba5 100644 --- a/jobs/expression.js +++ b/jobs/expression.js @@ -1,4 +1 @@ -// language-http - -get('someUrl', { ...params }, callback); -post('someUrl', { body: state => state.data })' +fn(state => state); diff --git a/project.yaml b/project.yaml index ccbfaf6..b4273da 100644 --- a/project.yaml +++ b/project.yaml @@ -11,9 +11,8 @@ workflows: adaptor: '@openfn/language-http@latest' # credential: # globals: - body: | - fn(state => state); - + body: 'file://.jobs/expression.js' + Send-to-OpenHIM-to-route-to-aleksa: name: Send to OpenHIM to route to aleksa adaptor: '@openfn/language-http@latest' @@ -21,7 +20,7 @@ workflows: # globals: body: | fn(state => state); - + Notify-CHW-upload-successful: name: Notify CHW upload successful adaptor: '@openfn/language-http@latest' @@ -29,7 +28,7 @@ workflows: # globals: body: | fn(state => state); - + Notify-CHW-upload-failed: name: Notify CHW upload failed adaptor: '@openfn/language-http@latest' @@ -37,7 +36,7 @@ workflows: # globals: body: | fn(state => state); - + triggers: webhook: type: webhook @@ -73,7 +72,7 @@ workflows: # globals: body: | // Get started by adding operations from the API reference - + triggers: webhook: type: webhook @@ -83,4 +82,4 @@ workflows: source_trigger: webhook target_job: New-job condition_type: always - enabled: true \ No newline at end of file + enabled: true