Skip to content

Commit 934263c

Browse files
committed
Fix prettier issue.
1 parent d9e2be3 commit 934263c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@ _Please avoid double posting across multiple channels!_
2323

2424
```js
2525
// functions/index.js
26-
const {onValueCreated} = require("firebase-functions/database");
26+
const { onValueCreated } = require("firebase-functions/database");
2727
const logger = require("firebase-functions/logger");
2828
const notifyUsers = require("./notify-users");
2929

30-
exports.newPost = onValueCreated(
31-
{ ref: "/posts/{postId}" },
32-
(event) => {
33-
logger.info("Received new post with ID:", event.params.postId);
34-
return notifyUsers(event.data.val());
30+
exports.newPost = onValueCreated({ ref: "/posts/{postId}" }, (event) => {
31+
logger.info("Received new post with ID:", event.params.postId);
32+
return notifyUsers(event.data.val());
3533
});
3634
```
3735

0 commit comments

Comments
 (0)