From a9d3ec0708706cde36ad59fb938d806094620d5f Mon Sep 17 00:00:00 2001 From: Lakshan Perera Date: Fri, 27 Jan 2023 12:58:02 +0700 Subject: [PATCH] fix: missing async keyword in example --- examples/edge-functions/supabase/functions/oak-server/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/edge-functions/supabase/functions/oak-server/index.ts b/examples/edge-functions/supabase/functions/oak-server/index.ts index 8e96d1f0033..3f9f192f3ca 100644 --- a/examples/edge-functions/supabase/functions/oak-server/index.ts +++ b/examples/edge-functions/supabase/functions/oak-server/index.ts @@ -6,7 +6,7 @@ router .get('/oak-server', (context) => { context.response.body = 'This is an example Oak server running on Edge Functions!' }) - .post('/oak-server/greet', (context) => { + .post('/oak-server/greet', async (context) => { // Note: request body will be streamed to the function as chunks, set limit to 0 to fully read it. const result = context.request.body({ type: 'json', limit: 0 }) const body = await result.value