From 287e65ee09c42eacf92d8df96289c94a17fcd45b Mon Sep 17 00:00:00 2001 From: ericxiett Date: Sat, 17 Apr 2021 08:41:37 +0000 Subject: [PATCH] Correct wrong name of APIEventPayload's arg In latest version, use 'method_name' instead of 'notifier_method'. This patch modifies it. Change-Id: If6a2852b6a825ce7263260b79237effc9a837dd2 --- doc/source/contributor/callbacks.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/contributor/callbacks.rst b/doc/source/contributor/callbacks.rst index 4af83c95f..884083678 100644 --- a/doc/source/contributor/callbacks.rst +++ b/doc/source/contributor/callbacks.rst @@ -198,18 +198,18 @@ pass along API controller specifics. Sample usage:: # BEFORE_RESPONSE for create: - APIEventPayload(context, notifier_method, action, + APIEventPayload(context, method_name, action, request_body=req_body, states=[create_result], collection_name=self._collection_name) # BEFORE_RESPONSE for delete: - APIEventPayload(context, notifier_method, action, + APIEventPayload(context, method_name, action, states=[copy_of_deleted_resource], collection_name=self._collection_name) # BEFORE_RESPONSE for update: - APIEventPayload(context, notifier_method, action, + APIEventPayload(context, method_name, action, states=[original, updated], collection_name=self._collection_name)