Skip to content

Commit ee5d059

Browse files
committed
Minor readme updates.
1 parent 05f92c0 commit ee5d059

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demos/local-only-todolist/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Then deploy the following sync rules:
3737
bucket_definitions:
3838
user_lists:
3939
# Separate bucket per todo list
40-
parameters: select id as list_id from lists where owner_id = token_parameters.user_id
40+
parameters: select id as list_id from lists where owner_id = request.user_id()
4141
data:
4242
- select * from lists where id = bucket.list_id
4343
- select * from todos where list_id = bucket.list_id
@@ -58,11 +58,11 @@ After this point, being signed in no longer determines which schema should be us
5858
```mermaid
5959
graph TD
6060
K[Start] --> A[App is empty and local-only]
61-
A --> B[User can create 0 or more todos that are stored local-only]
61+
A --> B[User creates todos that are stored local-only]
6262
A --> C[User can login/register]
6363
B -->
6464
C --> D[Local-only data gets synced to PowerSync service]
65-
D --> E[User can create 0 or more todos that will get synced]
65+
D --> E[User creates todos that will get synced]
6666
D --> F
6767
E --> F[User can logout explicitly]
6868
F --> A

0 commit comments

Comments
 (0)