Skip to content

Commit

Permalink
fix(mails): send mails for subscription (#975)
Browse files Browse the repository at this point in the history
Refs: 878
Reviewed-By: Evelyn Gurschler <evelyn.gurschler@bmw.de>
  • Loading branch information
Phil91 authored Sep 16, 2024
1 parent 7250990 commit 7573aba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ public async Task<Guid> AddOfferSubscriptionAsync(Guid offerId, IEnumerable<Offe
AutoSetupExecuted = !string.IsNullOrWhiteSpace(offerProviderDetails.AutoSetupUrl) && !offerProviderDetails.IsSingleInstance
});
await SendNotifications(offerId, offerTypeId, offerProviderDetails.SalesManagerId, _identityData.IdentityId, content, serviceManagerRoles).ConfigureAwait(ConfigureAwaitOptions.None);
await _portalRepositories.SaveAsync().ConfigureAwait(ConfigureAwaitOptions.None);

await _mailingProcessCreation.RoleBaseSendMail(
notificationRecipients,
Expand All @@ -101,6 +100,7 @@ await _mailingProcessCreation.RoleBaseSendMail(
$"{offerTypeId.ToString().ToLower()}-subscription-request"
},
offerProviderDetails.ProviderCompanyId.Value).ConfigureAwait(ConfigureAwaitOptions.None);
await _portalRepositories.SaveAsync().ConfigureAwait(ConfigureAwaitOptions.None);

return offerSubscription.Id;
}
Expand Down

0 comments on commit 7573aba

Please sign in to comment.