Fix empty tracker logs records
This commit is contained in:
@@ -113,7 +113,7 @@ class TrackingRepository @Inject constructor(
|
|||||||
db.withTransaction {
|
db.withTransaction {
|
||||||
val track = getOrCreateTrack(updates.manga.id).mergeWith(updates)
|
val track = getOrCreateTrack(updates.manga.id).mergeWith(updates)
|
||||||
db.tracksDao.upsert(track)
|
db.tracksDao.upsert(track)
|
||||||
if (updates.isValid /*&& updates.newChapters.isNotEmpty()*/) {
|
if (updates.isValid && updates.newChapters.isNotEmpty()) {
|
||||||
updatePercent(updates)
|
updatePercent(updates)
|
||||||
val logEntity = TrackLogEntity(
|
val logEntity = TrackLogEntity(
|
||||||
mangaId = updates.manga.id,
|
mangaId = updates.manga.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user