Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No created event is fired for ProductVariantEvent #1095

Closed
skid opened this issue Sep 16, 2021 · 0 comments · Fixed by #1102
Closed

No created event is fired for ProductVariantEvent #1095

skid opened this issue Sep 16, 2021 · 0 comments · Fixed by #1102
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@skid
Copy link
Contributor

skid commented Sep 16, 2021

Describe the bug
When a new ProductVariant is created I expect an event of the type created to be fired. I only get an updated event and all the product variants in it have the same createdAt and updatedAt values, which means they were just created.

To Reproduce
Add this to any init method of a plugin that subscribes to events

this.eventBus.ofType(ProductVariantEvent).subscribe(event => {
      console.log('Productvariant Event', event);
});

Expected behavior
A created event to be fired when product variants are created.

Environment (please complete the following information):

  • @vendure/core version: 1.2.0
  • Nodejs version: 14
  • Database: Postgres 13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants