Dashboard Customization Polish (#2295)

This commit is contained in:
Joe Milazzo 2023-09-30 12:33:16 -06:00 committed by GitHub
parent 25e759d301
commit 25ffb2ffe1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 255 additions and 258 deletions

View file

@ -18,7 +18,7 @@ public interface IScrobbleRepository
void Attach(ScrobbleEvent evt);
void Attach(ScrobbleError error);
void Remove(ScrobbleEvent evt);
void Remove(IList<ScrobbleEvent> evts);
void Remove(IEnumerable<ScrobbleEvent> events);
void Update(ScrobbleEvent evt);
Task<IList<ScrobbleEvent>> GetByEvent(ScrobbleEventType type, bool isProcessed = false);
Task<IList<ScrobbleEvent>> GetProcessedEvents(int daysAgo);
@ -60,9 +60,9 @@ public class ScrobbleRepository : IScrobbleRepository
_context.ScrobbleEvent.Remove(evt);
}
public void Remove(IList<ScrobbleEvent> evts)
public void Remove(IEnumerable<ScrobbleEvent> events)
{
_context.ScrobbleEvent.RemoveRange(evts);
_context.ScrobbleEvent.RemoveRange(events);
}
public void Update(ScrobbleEvent evt)