Skip to content

Commit 23f6a1c

Browse files
authored
docs: fix missing brackets
1 parent 9f3fe59 commit 23f6a1c

File tree

1 file changed

+6
-6
lines changed
  • docs/firestore-record-acknowledgments

1 file changed

+6
-6
lines changed

docs/firestore-record-acknowledgments/index.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ For example, to acknowledge a notice:
5353
import { getFunctions, httpsCallable } from "firebase/functions";
5454

5555
const functions = getFunctions();
56-
await httpsCallable(functions, 'ext-firestore-firestore-record-acknowledgments-acknowledgeNotice)({
56+
await httpsCallable(functions, 'ext-firestore-firestore-record-acknowledgments-acknowledgeNotice')({
5757
noticeId: 'EA9QhZKKta9KXcckiasc',
5858
});
5959
```
6060

6161
In-case you need to capture custom preferences relating to an acknowledgment, you can provide custom metadata to the function, for example:
6262

6363
```js
64-
await httpsCallable(functions, 'ext-firestore-firestore-record-acknowledgments-acknowledgeNotice)({
64+
await httpsCallable(functions, 'ext-firestore-firestore-record-acknowledgments-acknowledgeNotice')({
6565
noticeId: 'EA9QhZKKta9KXcckiasc',
6666
metadata: { preference1: true, preference2: false },
6767
});
@@ -70,7 +70,7 @@ await httpsCallable(functions, 'ext-firestore-firestore-record-acknowledgments-a
7070
You can also provide a custom “type” of acknowledgment (the default type is “seen”), for example:
7171

7272
```js
73-
await httpsCallable(functions, 'ext-firestore-firestore-record-acknowledgments-acknowledgeNotice)({
73+
await httpsCallable(functions, 'ext-firestore-firestore-record-acknowledgments-acknowledgeNotice')({
7474
noticeId: 'EA9QhZKKta9KXcckiasc',
7575
type: 'seen',
7676
});
@@ -79,7 +79,7 @@ await httpsCallable(functions, 'ext-firestore-firestore-record-acknowledgments-a
7979
If you wish to unacknowledge a notice, call the `unacknowledgeNotice` function:
8080

8181
```js
82-
await httpsCallable(functions, 'ext-firestore-firestore-record-acknowledgments-unacknowledgeNotice)({
82+
await httpsCallable(functions, 'ext-firestore-firestore-record-acknowledgments-unacknowledgeNotice')({
8383
noticeId: 'EA9QhZKKta9KXcckiasc',
8484
metadata: { reason: '...' },
8585
});
@@ -93,7 +93,7 @@ To retrieve all previous user notice acknowledgments, call the `getAcknowledgmen
9393
import { getFunctions, httpsCallable } from "firebase/functions";
9494

9595
const functions = getFunctions();
96-
const acknowledgments = await httpsCallable(functions, 'ext-firestore-firestore-record-acknowledgments-getAcknowledgments)();
96+
const acknowledgments = await httpsCallable(functions, 'ext-firestore-firestore-record-acknowledgments-getAcknowledgments')();
9797
```
9898

9999
By default this won’t include unacknowledgment documents, however if those are required you can provide a `includeUnacknowledgments` property to the call:
@@ -102,7 +102,7 @@ By default this won’t include unacknowledgment documents, however if those are
102102
import { getFunctions, httpsCallable } from "firebase/functions";
103103

104104
const functions = getFunctions();
105-
const acknowledgments = await httpsCallable(functions, 'ext-firestore-firestore-record-acknowledgments-getAcknowledgments)({
105+
const acknowledgments = await httpsCallable(functions, 'ext-firestore-firestore-record-acknowledgments-getAcknowledgments')({
106106
includeUnacknowledgments: true,
107107
});
108108
```

0 commit comments

Comments
 (0)