Fix: Spurious EF error on CallbackGenerator

This commit is contained in:
Nicolas Dorier
2025-11-14 22:19:09 +09:00
parent 01f478e680
commit c9dcd4f0a4
10 changed files with 85 additions and 110 deletions

View File

@@ -74,7 +74,7 @@ public partial class UIStoresController
(await _userManager.CreateAsync(user)) is { Succeeded: true })
{
var invitationEmail = await _emailSenderFactory.IsComplete();
var evt = await UserEvent.Invited.Create(user!, currentUser, _callbackGenerator, Request, invitationEmail);
var evt = await UserEvent.Invited.Create(user!, currentUser, _callbackGenerator, invitationEmail);
_eventAggregator.Publish(evt);
inviteInfo = invitationEmail
? StringLocalizer["An invitation email has been sent.<br/>You may alternatively share this link with them: <a class='alert-link' href='{0}'>{0}</a>", evt.InvitationLink]