diff options
| author | JPVenson <github@jpb.email> | 2025-06-16 00:19:57 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-15 15:19:57 -0600 |
| commit | 4cd0a2ed8d2a0a81a77b80310e75371e72602eea (patch) | |
| tree | 4bf97508d46880a8c27a76ff637bfef8ec9d1908 /MediaBrowser.Controller | |
| parent | aa05185917339d3c80183b8304302d3c8433cfbb (diff) | |
Always set update action when item does not exist (#14304)
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Persistence/IItemRepository.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Persistence/IItemRepository.cs b/MediaBrowser.Controller/Persistence/IItemRepository.cs index e185898bf..f4ac0ece4 100644 --- a/MediaBrowser.Controller/Persistence/IItemRepository.cs +++ b/MediaBrowser.Controller/Persistence/IItemRepository.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using System.Threading; +using System.Threading.Tasks; using Jellyfin.Data.Enums; using MediaBrowser.Controller.Entities; using MediaBrowser.Model.Dto; @@ -102,4 +103,11 @@ public interface IItemRepository IReadOnlyList<string> GetGenreNames(); IReadOnlyList<string> GetAllArtistNames(); + + /// <summary> + /// Checks if an item has been persisted to the database. + /// </summary> + /// <param name="id">The id to check.</param> + /// <returns>True if the item exists, otherwise false.</returns> + Task<bool> ItemExistsAsync(Guid id); } |
