Skip to content

Commit

Permalink
update parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
jyecusch committed May 24, 2023
1 parent deb42f4 commit 74322fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nitric/resources/buckets.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def allow(self, *args: Union[BucketPermission, str]) -> BucketRef:

return Storage().bucket(self.name)

def on(self, notification_type: str, notification_prefix_filter: str):
def on(self, trigger: str, path_match: str):
"""Create and return a bucket notification decorator for this bucket."""
print("this has been called")

Expand All @@ -95,8 +95,8 @@ def decorator(func: BucketNotificationMiddleware):
self._server = FunctionServer(
BucketNotificationWorkerOptions(
bucket_name=self.name,
notification_type=notification_type,
notification_prefix_filter=notification_prefix_filter,
notification_type=trigger,
notification_prefix_filter=path_match,
)
)
self._server.bucket_notification(func)
Expand Down

0 comments on commit 74322fb

Please sign in to comment.