mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge branch 'feature/EFUserData' of https://github.com/JPVenson/jellyfin into feature/EFUserData
This commit is contained in:
commit
caa1a06dec
@ -94,7 +94,10 @@ public sealed class BaseItemRepository
|
||||
/// <inheritdoc />
|
||||
public void DeleteItem(Guid id)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(id.IsEmpty() ? null : id);
|
||||
if (id.IsEmpty())
|
||||
{
|
||||
throw new ArgumentException("Guid can't be empty", nameof(id));
|
||||
}
|
||||
|
||||
using var context = _dbProvider.CreateDbContext();
|
||||
using var transaction = context.Database.BeginTransaction();
|
||||
|
Loading…
x
Reference in New Issue
Block a user