mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-13 11:02:18 -04:00
Folder Watching Polish + Epub Fix (#1550)
* Fixed entrypoint writing bad json (from develop) * Fixed a bug where log file could write out a crap ton of information (serializing Series object) when a db error occurs. * Fixed an issue with scan loop where concurrency issues could occur on new series being added. * Tweaked the logger to suppress some noisy logs when using Debug log level. * Fixed a regression with epub parsing from v3.2 of Vers-One's release * Fixed up folder watching to work more reliable. Validated in production. * Code cleanup
This commit is contained in:
@@ -56,6 +56,7 @@ internal class RecentlyAddedSeries
|
||||
|
||||
public interface ISeriesRepository
|
||||
{
|
||||
void Add(Series series);
|
||||
void Attach(Series series);
|
||||
void Update(Series series);
|
||||
void Remove(Series series);
|
||||
@@ -136,6 +137,11 @@ public class SeriesRepository : ISeriesRepository
|
||||
_mapper = mapper;
|
||||
}
|
||||
|
||||
public void Add(Series series)
|
||||
{
|
||||
_context.Series.Add(series);
|
||||
}
|
||||
|
||||
public void Attach(Series series)
|
||||
{
|
||||
_context.Series.Attach(series);
|
||||
|
||||
Reference in New Issue
Block a user