Skip to content

Commit d3270ed

Browse files
authored
fix(workflows): ensure actor has a default value (#15)
1 parent f425068 commit d3270ed

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

knockapi/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ def messages(self):
8080
from .resources import Messages
8181
return Messages(self)
8282

83-
# Defined at the top level here for convienience
83+
# Defined at the top level here for convenience
8484
def notify(
8585
self,
8686
key,
87-
actor,
8887
recipients,
8988
data={},
89+
actor=None,
9090
cancellation_key=None,
9191
tenant=None):
9292
"""
@@ -113,9 +113,9 @@ def notify(
113113
"""
114114
# Note: this is essentially a delegated method
115115
return self.workflows.trigger(
116-
key,
117-
actor,
118-
recipients,
116+
key=key,
117+
recipients=recipients,
119118
data=data,
119+
actor=actor,
120120
cancellation_key=cancellation_key,
121121
tenant=tenant)

knockapi/resources/workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ class Workflows(Service):
55
def trigger(
66
self,
77
key,
8-
actor,
98
recipients,
109
data={},
10+
actor=None,
1111
cancellation_key=None,
1212
tenant=None):
1313
"""

0 commit comments

Comments
 (0)