Skip to content

Webhook data returns wrong siteId #65

@vlradstake

Description

@vlradstake

Description

We use craft CMS as a headless CMS and the GraphQL api to get the content. With the Webhook plugin we send webhooks to the application to clear the cache and get the new content from Craft CMS. When a single type is saved the webhook plugins sends a request with the wrong siteId. We have different sites with the same single names.

Steps to reproduce

  1. Create multiple sites with the same single handel (Home)
  2. Save the single entry
  3. Webhook plugins sends a request with another sites id

Saved from default site
Screenshot 2022-03-04 at 15 22 49

Webhook data
Screenshot 2022-03-04 at 15 21 38

GraphQL data
Screenshot 2022-03-04 at 15 21 45

Additional info

  • Craft CMS version: 3.7.24
  • Webhooks version: 2.4.1
  • PHP version: 8.0.15
  • Database driver & version: MySQL 5.5.5
  • Plugins & versions:

Screenshot 2022-03-04 at 15 10 38

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions