Delete a credit once no item maps to it any more

This commit is contained in:
Shadowghost
2026-08-25 20:23:14 +02:00
parent 8c0775e941
commit 6978dfc294
6 changed files with 132 additions and 1 deletions
@@ -33,6 +33,12 @@ public interface IPeopleRepository
/// <returns>The list of people names matching the filter.</returns>
IReadOnlyList<string> GetPeopleNames(InternalPeopleQuery filter);
/// <summary>
/// Deletes every credit that no item maps to any more.
/// </summary>
/// <returns>The number of credits that were deleted.</returns>
int DeleteOrphanedCredits();
/// <summary>
/// Gets the distinct people names per item for multiple items efficiently by querying from the mapping table.
/// </summary>