From 581024aaabbba09ea39f118b900bf3138cada7fa Mon Sep 17 00:00:00 2001 From: Nokome Bentley Date: Wed, 13 Apr 2022 13:40:54 +1200 Subject: [PATCH] docs(APIs guide): Fix method and table names --- web/docs/guides/api.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/docs/guides/api.mdx b/web/docs/guides/api.mdx index 256da1d3023..a4c231288c3 100644 --- a/web/docs/guides/api.mdx +++ b/web/docs/guides/api.mdx @@ -339,13 +339,13 @@ values={[ ```sql -alter publication supabase_realtime add table products; +alter publication supabase_realtime add table todos; ``` -Now we can listen to any new data that is inserted into the `todo` table: +Now we can listen to any new data that is inserted into the `todos` table: { // Listen to unserts const { data: todos, error } = await supabase .from('todos') - .in('INSERT', handleUpdates) + .on('INSERT', handleUpdates) .subscribe() ``` @@ -432,4 +432,4 @@ select usename,useconfig from pg_shadow where usename = 'authenticator' ; The expected value for `useconfig` should be: ``` ["session_preload_libraries=supautils, safeupdate"] -``` \ No newline at end of file +```