Skip to content

Cloud Functions background sample appears incorrect: entity.data.myMessage #260

@DazWilkin

Description

@DazWilkin

nodejs-docs-samples/functions/background/index.js line 27

commit: f7b29b3

introduces 'event.data.myMessage'

IIUC 'event' object does not contain this property and the code does not work:

https://cloud.google.com/functions/docs/writing/background#event_parameter

A different and probably better mechanism is used here:

https://cloud.google.com/functions/docs/tutorials/pubsub#preparing_the_application

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚨This issue needs some love.triage meI really want to be triaged.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions