Skip to content

Commit

Permalink
fix(deps): update Harness dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
error418 committed Jun 26, 2020
1 parent 0744a2f commit 78ba0a1
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 71 deletions.
144 changes: 77 additions & 67 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"release": "semantic-release"
},
"dependencies": {
"@swingletree-oss/harness": "^1.2.1",
"@swingletree-oss/harness": "^2.0.0",
"@swingletree-oss/scotty-client": "^1.1.0",
"body-parser": "^1.19.0",
"compression": "^1.7.4",
Expand Down
5 changes: 2 additions & 3 deletions src/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@ class NebulaWebhook {
return;
}

const source = new Harness.GithubSource();
Object.assign(source, message.meta.source);
const source = new Harness.GithubSource(message.meta.source as Harness.GithubSource);

if (!source.isDataComplete()) {
if (!Harness.GithubSource.isDataComplete(source)) {
res.status(400).send(
new Comms.Message.ErrorMessage(
new BadRequestError("missing source coordinates in request metadata.")
Expand Down

0 comments on commit 78ba0a1

Please sign in to comment.