File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -98,13 +98,12 @@ exports.helloBackground = (data, context) => {
9898 * This function is exported by index.js, and executed when
9999 * the trigger topic receives a message.
100100 *
101- * @param {object } data The event payload.
101+ * @param {object } pubSubEvent The event payload.
102102 * @param {object } context The event metadata.
103103 */
104- exports . helloPubSub = ( data , context ) => {
105- const pubSubMessage = data ;
106- const name = pubSubMessage . data
107- ? Buffer . from ( pubSubMessage . data , 'base64' ) . toString ( )
104+ exports . helloPubSub = ( pubSubEvent , context ) => {
105+ const name = pubSubEvent . data
106+ ? Buffer . from ( pubSubEvent . data , 'base64' ) . toString ( )
108107 : 'World' ;
109108
110109 console . log ( `Hello, ${ name } !` ) ;
You can’t perform that action at this time.
0 commit comments