Includes fix for redemption failing with DbUpdateConcurrencyException: change the guest password before applying the user policy, since UpdatePolicyAsync bumps the user's EF concurrency token and a stale instance then breaks ChangePassword.
18 lignes
459 B
C#
18 lignes
459 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Jellyfin.Plugin.ShareLinks.Services;
|
|
|
|
/// <summary>
|
|
/// Temporary cleanup implementation used until the real cleanup pipeline lands.
|
|
/// </summary>
|
|
public sealed class NoOpShareLinkCleanupService : IShareLinkCleanupService
|
|
{
|
|
/// <inheritdoc />
|
|
public Task CleanupAsync(CancellationToken cancellationToken)
|
|
{
|
|
_ = cancellationToken;
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|