File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,13 @@ _Please avoid double posting across multiple channels!_
23
23
24
24
``` js
25
25
// functions/index.js
26
- const {onValueCreated } = require (" firebase-functions/database" );
26
+ const { onValueCreated } = require (" firebase-functions/database" );
27
27
const logger = require (" firebase-functions/logger" );
28
28
const notifyUsers = require (" ./notify-users" );
29
29
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 ());
35
33
});
36
34
```
37
35
You can’t perform that action at this time.
0 commit comments