mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-30 11:25:20 -04:00
Text View, View & Filter All Annotations, and More OPDS Love (#4062)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
@@ -120,6 +120,7 @@ public interface IUserRepository
|
||||
|
||||
Task<AnnotationDto?> GetAnnotationDtoById(int userId, int annotationId);
|
||||
Task<List<AnnotationDto>> GetAnnotationDtosBySeries(int userId, int seriesId);
|
||||
Task UpdateUserAsActive(int userId);
|
||||
}
|
||||
|
||||
public class UserRepository : IUserRepository
|
||||
@@ -630,6 +631,15 @@ public class UserRepository : IUserRepository
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
public async Task UpdateUserAsActive(int userId)
|
||||
{
|
||||
await _context.Set<AppUser>()
|
||||
.Where(u => u.Id == userId)
|
||||
.ExecuteUpdateAsync(setters => setters
|
||||
.SetProperty(u => u.LastActiveUtc, DateTime.UtcNow)
|
||||
.SetProperty(u => u.LastActive, DateTime.Now));
|
||||
}
|
||||
|
||||
|
||||
public async Task<IEnumerable<AppUser>> GetAdminUsersAsync()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user