Added sort audit to nodes actually being sorted

(cherry picked from commit 36069aa813)
This commit is contained in:
jesperweber
2023-03-20 14:43:24 +01:00
committed by Sebastiaan Janssen
parent d31bd8755e
commit b1fd9e6f16

View File

@@ -2932,6 +2932,7 @@ public class ContentService : RepositoryService, IContentService
// save
saved.Add(content);
_documentRepository.Save(content);
Audit(AuditType.Sort, userId, content.Id, "Sorting content performed by user");
}
// first saved, then sorted
@@ -2947,8 +2948,7 @@ public class ContentService : RepositoryService, IContentService
{
scope.Notifications.Publish(new ContentPublishedNotification(published, eventMessages));
}
Audit(AuditType.Sort, userId, 0, "Sorting content performed by user");
return OperationResult.Succeed(eventMessages);
}