Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit b289615

Browse files
committed
Use new sync rules syntax
1 parent 640feca commit b289615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Then deploy the following sync rules:
4141
bucket_definitions:
4242
user_lists:
4343
# Separate bucket per todo list
44-
parameters: select id as list_id from lists where owner_id = token_parameters.user_id
44+
parameters: select id as list_id from lists where owner_id = request.user_id()
4545
data:
4646
- select * from lists where id = bucket.list_id
4747
- select * from todos where list_id = bucket.list_id

0 commit comments

Comments
 (0)