From 74322fb4c10f56efa4615cc25dccd94eef41e3b8 Mon Sep 17 00:00:00 2001 From: Jye Cusch Date: Wed, 24 May 2023 20:45:10 +1000 Subject: [PATCH] update parameter names --- nitric/resources/buckets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nitric/resources/buckets.py b/nitric/resources/buckets.py index 6299baa..1e36d78 100644 --- a/nitric/resources/buckets.py +++ b/nitric/resources/buckets.py @@ -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") @@ -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)