Skip to content

Commit

Permalink
It is possible for book database entries to disappear before syncs.
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed Nov 9, 2023
1 parent 41d9c0a commit 62c360f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,15 @@ internal class BServiceOpSyncOneAccount(
bookmark.bookmarkId.value
)

if (!syncable.account.bookDatabase.books().contains(bookmark.book)) {
this.logger.debug(
"[{}]: we no longer have book {}",
this.profile.id.uuid,
bookmark.bookmarkId.value
)
continue
}

val entry = syncable.account.bookDatabase.entry(bookmark.book)

when (bookmark) {
Expand Down

0 comments on commit 62c360f

Please sign in to comment.