Browse Source

fix(core): Fix wrong event type when a variant is created (#1102)

Closes #1095
Dusko Jordanovski 4 years ago
parent
commit
cc45254056
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/core/src/service/services/product-variant.service.ts

+ 1 - 1
packages/core/src/service/services/product-variant.service.ts

@@ -321,7 +321,7 @@ export class ProductVariantService {
             ids.push(id);
         }
         const createdVariants = await this.findByIds(ctx, ids);
-        this.eventBus.publish(new ProductVariantEvent(ctx, createdVariants, 'updated'));
+        this.eventBus.publish(new ProductVariantEvent(ctx, createdVariants, 'created'));
         return createdVariants;
     }