File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
demos/local-only-todolist Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Then deploy the following sync rules:
3737bucket_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
5959graph 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
You can’t perform that action at this time.
0 commit comments