Skip to content

Commit

Permalink
Merge pull request #283 from andrewwhitehead/fix/problem-report
Browse files Browse the repository at this point in the history
Fix problem report import issue; change webhook topic
  • Loading branch information
swcurran authored Nov 29, 2019
2 parents ec0a184 + af6ab38 commit 456280e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aries_cloudagent/protocols/problem_report/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ async def handle(self, context: RequestContext, responder: BaseResponder):
context.message,
)

await responder.send_webhook("problem-report", context.message.serialize())
await responder.send_webhook("problem_report", context.message.serialize())
2 changes: 1 addition & 1 deletion aries_cloudagent/protocols/problem_report/message_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

PROTOCOL_PACKAGE = "aries_cloudagent.protocols.problem_report"

MESSAGE_TYPES = {PROBLEM_REPORT: f"{PROTOCOL_PACKAGE}.messages.ProblemReport"}
MESSAGE_TYPES = {PROBLEM_REPORT: f"{PROTOCOL_PACKAGE}.message.ProblemReport"}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ async def test_problem_report(self, request_context):
assert len(messages) == 0
hooks = responder.webhooks
assert len(hooks) == 1
assert hooks[0] == ("problem-report", request_context.message.serialize())
assert hooks[0] == ("problem_report", request_context.message.serialize())

0 comments on commit 456280e

Please sign in to comment.