Skip to content

Commit 200a57d

Browse files
scheduled functions - add note about needing to enable APIs in project
1 parent 8d67729 commit 200a57d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

firestore-counter/POSTINSTALL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Update your Cloud Firestore security rules to allow lookups and writes to the `_
88

99
```
1010
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.
1212
match /_counter_shards_/{shardId} {
1313
allow get;
1414
allow write: if request.resource.data.keys() == ["visits"]
@@ -20,9 +20,9 @@ match /databases/{database}/documents/pages/{page} {
2020

2121
#### Set up a scheduled function
2222

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.
2424

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:
2626

2727
```
2828
gcloud services enable cloudscheduler.googleapis.com

0 commit comments

Comments
 (0)