Skip to content

Use x-shopify-topic to determine what triggered webhook event  #29

@sonnymai

Description

@sonnymai

Nice work with this. Not a bug, but fyi:

FYI, you can use event.headers["x-shopify-topic"] in your shopify sync webhook to determine what type of action occured e.g. products/create, products/update. I see currently you have some workarounds with if (data.hasOwnProperty('title') && data.hasOwnProperty('handle'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions