Skip to content

Commit

Permalink
Merge pull request #467 from OpenFn/465-fix-dhis2
Browse files Browse the repository at this point in the history
Worker: fix credential handling
  • Loading branch information
josephjclark authored Nov 13, 2023
2 parents 1fb7aad + ead672a commit 4b83a24
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/warm-elephants-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@openfn/ws-worker': patch
---

Fix credential mapping from Lightning
2 changes: 1 addition & 1 deletion packages/ws-worker/test/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ test.serial(
const attempt = getAttempt({}, [
{
id: 'some-job',
credential: 'a',
credential_id: 'a',
adaptor: '@openfn/[email protected]',
body: JSON.stringify({ answer: 42 }),
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ws-worker/test/mock/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const attempts = {
id: 'job-1',
adaptor: '@openfn/[email protected]',
body: 'fn(a => a)',
credential: 'a',
credential_id: 'a',
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ws-worker/test/util/convert-attempt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const createNode = (props = {}) =>
id: 'a',
body: 'x',
adaptor: 'common',
credential: 'y',
credential_id: 'y',
...props,
} as Node);

Expand Down

0 comments on commit 4b83a24

Please sign in to comment.