diff --git a/demos/django-todolist/README.md b/demos/django-todolist/README.md index a7b8c3d0..234cae33 100644 --- a/demos/django-todolist/README.md +++ b/demos/django-todolist/README.md @@ -60,7 +60,7 @@ Then deploy the following sync rules: bucket_definitions: user_lists: # Separate bucket per todo list - parameters: select id as list_id from lists where owner_id = token_parameters.user_id + parameters: select id as list_id from lists where owner_id = request.user_id() data: - select * from lists where id = bucket.list_id - select * from todos where list_id = bucket.list_id diff --git a/demos/supabase-todolist-drift/README.md b/demos/supabase-todolist-drift/README.md index 74c81261..7b8d632e 100644 --- a/demos/supabase-todolist-drift/README.md +++ b/demos/supabase-todolist-drift/README.md @@ -37,7 +37,7 @@ Then deploy the following sync rules: bucket_definitions: user_lists: # Separate bucket per todo list - parameters: select id as list_id from lists where owner_id = token_parameters.user_id + parameters: select id as list_id from lists where owner_id = request.user_id() data: - select * from lists where id = bucket.list_id - select * from todos where list_id = bucket.list_id diff --git a/demos/supabase-todolist/README.md b/demos/supabase-todolist/README.md index b6e281c7..542aa14d 100644 --- a/demos/supabase-todolist/README.md +++ b/demos/supabase-todolist/README.md @@ -33,7 +33,7 @@ Then deploy the following sync rules: bucket_definitions: user_lists: # Separate bucket per todo list - parameters: select id as list_id from lists where owner_id = token_parameters.user_id + parameters: select id as list_id from lists where owner_id = request.user_id() data: - select * from lists where id = bucket.list_id - select * from todos where list_id = bucket.list_id