docs(APIs guide): Fix method and table names

This commit is contained in:
Nokome Bentley authored and GitHub committed 2022-04-13 13:40:54 +12:00
1 parent 0351d40252
commit 581024aaab
1 file changed
+4 -4
+4 -4
View File
@@ -339,13 +339,13 @@ values={[
<TabItem value="SQL">
```sql
alter publication supabase_realtime add table products;
alter publication supabase_realtime add table todos;
```
</TabItem>
</Tabs>
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:
<Tabs
defaultValue="Javascript"
@@ -367,7 +367,7 @@ const handleInserts = (payload) => {
// 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"]
```
```