From cb352b68ffc0adeac2886d9e3ff05c118373e74c Mon Sep 17 00:00:00 2001 From: Maria Elisabeth Schreiber Date: Mon, 24 Jun 2024 13:09:52 -0600 Subject: [PATCH] docs: update rhai timing execution example (#5512) --- docs/source/customizations/rhai-api.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/customizations/rhai-api.mdx b/docs/source/customizations/rhai-api.mdx index b99dc26405..7af78cb39a 100644 --- a/docs/source/customizations/rhai-api.mdx +++ b/docs/source/customizations/rhai-api.mdx @@ -138,7 +138,7 @@ fn process_response(response) { } fn supergraph_service(service) { - const response_callback = Fn("process_request"); + const response_callback = Fn("process_response"); service.map_response(response_callback); } ``` @@ -668,4 +668,4 @@ You can also create your own status code from an integer: if response.status_code == status_code_from_int(200) { print(`ok`); } -``` \ No newline at end of file +```