Skip to content

Commit

Permalink
feat(core): Emit CustomerEvent on creation via Shop API
Browse files Browse the repository at this point in the history
Closes #949
  • Loading branch information
michaelbromley committed Jun 28, 2021
1 parent d769f33 commit 680b8c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/service/services/customer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ export class CustomerService {
} else {
customer = new Customer(input);
this.channelService.assignToCurrentChannel(customer, ctx);
this.eventBus.publish(new CustomerEvent(ctx, customer, 'created'));
}
return this.connection.getRepository(ctx, Customer).save(customer);
}
Expand Down

0 comments on commit 680b8c2

Please sign in to comment.