Skip to content

Commit 4219807

Browse files
authored
fix: delegate request to client from Workflows Service (#3)
1 parent aff51fe commit 4219807

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

knockapi/resources/workflows.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def trigger(self, key, actor, recipients, data={}, cancellation_key=None, tenant
2828
'tenant': tenant
2929
}
3030

31-
return self.request("post", endpoint, payload=params)
31+
return self.client.request("post", endpoint, payload=params)
3232

3333
def cancel(self, key, cancellation_key, recipients=None):
3434
"""
@@ -49,4 +49,4 @@ def cancel(self, key, cancellation_key, recipients=None):
4949
'cancellation_key': cancellation_key
5050
}
5151

52-
return self.request("post", endpoint, payload=params)
52+
return self.client.request("post", endpoint, payload=params)

0 commit comments

Comments
 (0)