From 4cd0a2ed8d2a0a81a77b80310e75371e72602eea Mon Sep 17 00:00:00 2001 From: JPVenson Date: Mon, 16 Jun 2025 00:19:57 +0300 Subject: Always set update action when item does not exist (#14304) --- MediaBrowser.Controller/Persistence/IItemRepository.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'MediaBrowser.Controller') 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 GetGenreNames(); IReadOnlyList GetAllArtistNames(); + + /// + /// Checks if an item has been persisted to the database. + /// + /// The id to check. + /// True if the item exists, otherwise false. + Task ItemExistsAsync(Guid id); } -- cgit v1.2.3