You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: firestore-counter/POSTINSTALL.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Update your Cloud Firestore security rules to allow lookups and writes to the `_
8
8
9
9
```
10
10
match /databases/{database}/documents/pages/{page} {
11
-
// Allow to increment only 'visits' field and only by 1.
11
+
// Allow to increment only the 'visits' field and only by 1.
12
12
match /_counter_shards_/{shardId} {
13
13
allow get;
14
14
allow write: if request.resource.data.keys() == ["visits"]
@@ -20,9 +20,9 @@ match /databases/{database}/documents/pages/{page} {
20
20
21
21
#### Set up a scheduled function
22
22
23
-
Set up a [scheduled function](https://firebase.google.com/docs/functions/schedule-functions) to call `${function:controller.url}` every minute.
23
+
Review the [scheduled function documentation](https://firebase.google.com/docs/functions/schedule-functions) to set up a call to `${function:controller.url}` every minute. You may need to enable some APIs in your Firebase project to use scheduled functions.
24
24
25
-
For example, to set up a scheduled function, you can run the following [`gcloud`](https://cloud.google.com/sdk/gcloud/) commands:
25
+
As an example, to set up a scheduled function, you can run the following [`gcloud`](https://cloud.google.com/sdk/gcloud/) commands:
0 commit comments