Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New samples for Cloud Functions docs #132

Merged
merged 23 commits into from
Jun 23, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update comment.
  • Loading branch information
jmdobry committed Jun 22, 2016
commit f69a769c0663e35df9f4767e879557511f04ab73
1 change: 1 addition & 0 deletions functions/background/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*
* @param {Object} context Cloud Function context.
* @param {Object} data Request data, provided by a trigger.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Document that data expects a message property.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

* @param {string} data.message Message, provided by the trigger.
*/
exports.helloWorld = function helloWorld (context, data) {
if (data.message === undefined) {
Expand Down