How to update a field, and prevent it re-triggers the update subscriber? #12605
Unanswered
aldo-roman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Medusa,
I have a use case where I need to trigger a workflow when a product is updated. As part of the workflow, the product is also updated (it re generates the product's tags).
How can I update the product without it re-emitting events?
I found
preventReleaseEventsin the shared context, but it seems to be undocumentedWill doing this work?
Alternatively, when subscribing to
product.updated, how could I know which fields were updated? This was possible in V1 but couldn't find documentation about it for V2.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions