Skip to content

Commit

Permalink
Fix prettier issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
taeold committed Aug 21, 2024
1 parent d9e2be3 commit 934263c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ _Please avoid double posting across multiple channels!_

```js
// functions/index.js
const {onValueCreated} = require("firebase-functions/database");
const { onValueCreated } = require("firebase-functions/database");
const logger = require("firebase-functions/logger");
const notifyUsers = require("./notify-users");

exports.newPost = onValueCreated(
{ ref: "/posts/{postId}" },
(event) => {
logger.info("Received new post with ID:", event.params.postId);
return notifyUsers(event.data.val());
exports.newPost = onValueCreated({ ref: "/posts/{postId}" }, (event) => {
logger.info("Received new post with ID:", event.params.postId);
return notifyUsers(event.data.val());
});
```

Expand Down

0 comments on commit 934263c

Please sign in to comment.