12748: Make sure to set writerId

This commit is contained in:
Patrick de Mooij
2022-08-15 21:17:43 +02:00
committed by Sebastiaan Janssen
parent 47bcc3e209
commit 3ee9bfbc93

View File

@@ -728,6 +728,8 @@ namespace Umbraco.Cms.Core.Services
media.CreatorId = userId;
}
media.WriterId = userId;
_mediaRepository.Save(media);
scope.Notifications.Publish(new MediaSavedNotification(media, eventMessages).WithStateFrom(savingNotification));
// TODO: See note about suppressing events in content service