Skip to content

Commit 2409a43

Browse files
authored
Apply suggestions from code review
1 parent 50c30ea commit 2409a43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/webhooks/webhooks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def _call_webhook(
153153
headers = {"content-type": "application/json"}
154154
json_data = json.dumps(data, sort_keys=True, cls=DjangoJSONEncoder)
155155
if webhook.secret:
156-
# TestWebHook on the frontend replicates this exact function, change the
156+
# signPayload of frontend/web/components/TestWebHook on the frontend replicates this exact function, change the
157157
# function there if this changes.
158158
signature = sign_payload(json_data, key=webhook.secret)
159159
headers.update({FLAGSMITH_SIGNATURE_HEADER: signature})
@@ -201,7 +201,7 @@ def call_webhook_with_failure_mail_after_retries(
201201
headers = {"content-type": "application/json"}
202202
json_data = json.dumps(data, sort_keys=True, cls=DjangoJSONEncoder)
203203
if webhook.secret:
204-
# TestWebHook on the frontend replicates this exact function, change the
204+
# signPayload of frontend/web/components/TestWebHook on the frontend replicates this exact function, change the
205205
# function there if this changes.
206206
signature = sign_payload(json_data, key=webhook.secret)
207207
headers.update({FLAGSMITH_SIGNATURE_HEADER: signature})

0 commit comments

Comments
 (0)