Skip to content

Commit

Permalink
Adding test breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Nov 1, 2024
1 parent 1426713 commit 9c8786b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Services/AuditTrailContentVersionNumberService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class AuditTrailContentVersionNumberService : IAuditTrailContentVersionNu

public AuditTrailContentVersionNumberService(ISession session) => _session = session;

public Task<int> GetLatestVersionNumberAsync(string contentItemId) =>
public Task<int> GetLatestVersionNumberChangedAsync(string contentItemId) =>
_session
.Query<AuditTrailEvent, AuditTrailEventIndex>(index =>
index.CorrelationId == contentItemId && index.Name == Saved)
Expand Down
4 changes: 2 additions & 2 deletions Services/IAuditTrailContentVersionNumberService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public interface IAuditTrailContentVersionNumberService
/// <summary>
/// Returns the current largest version number for the content item.
/// </summary>
Task<int> GetLatestVersionNumberAsync(string contentItemId);
Task<int> GetLatestVersionNumberChangedAsync(string contentItemId);

/// <summary>
/// Returns the version number and its content of a specific version as of the event identified by the given
Expand All @@ -30,5 +30,5 @@ public static class ContentVersionNumberServiceExtensions
public static Task<int> GetLatestVersionNumberAsync(
this IAuditTrailContentVersionNumberService service,
IContent content) =>
service.GetLatestVersionNumberAsync(content?.ContentItem?.ContentItemId);
service.GetLatestVersionNumberChangedAsync(content?.ContentItem?.ContentItemId);
}

0 comments on commit 9c8786b

Please sign in to comment.