Minor tracking cleanups

This commit is contained in:
arkon
2023-12-24 22:25:22 -05:00
parent 6d74a86711
commit 6887d98f15
24 changed files with 64 additions and 69 deletions

View File

@ -20,7 +20,7 @@ object TrackMapper {
): Track = Track(
id = id,
mangaId = mangaId,
syncId = syncId,
trackerId = syncId,
remoteId = remoteId,
libraryId = libraryId,
title = title,

View File

@ -31,11 +31,11 @@ class TrackRepositoryImpl(
}
}
override suspend fun delete(mangaId: Long, syncId: Long) {
override suspend fun delete(mangaId: Long, trackerId: Long) {
handler.await {
manga_syncQueries.delete(
mangaId = mangaId,
syncId = syncId,
syncId = trackerId,
)
}
}
@ -53,7 +53,7 @@ class TrackRepositoryImpl(
tracks.forEach { mangaTrack ->
manga_syncQueries.insert(
mangaId = mangaTrack.mangaId,
syncId = mangaTrack.syncId,
syncId = mangaTrack.trackerId,
remoteId = mangaTrack.remoteId,
libraryId = mangaTrack.libraryId,
title = mangaTrack.title,