We moved the generic events publishing from services to the repository, but for some reason left for the above service.
We also have a separate EmailSubscribedEvent and EmailUnsubscribedEvent events for this.
This all leads to duplicate events and the impossibility of using them correctly in plugins. So, let's check and review using all of these events in the service.
nopCommerce version: develop
We moved the generic events publishing from services to the repository, but for some reason left for the above service. We also have a separate EmailSubscribedEvent and EmailUnsubscribedEvent events for this. This all leads to duplicate events and the impossibility of using them correctly in plugins. So, let's check and review using all of these events in the service.
Source: https://www.nopcommerce.com/en/boards/topic/90037/handleevententityinsertedeventnewslettersubscription-eventmessage-gets-called-twice