Skip to content

Commit

Permalink
lock book number on update. closes #100
Browse files Browse the repository at this point in the history
  • Loading branch information
Snd-R committed Oct 1, 2023
1 parent 5ffdcba commit 7abf768
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/kotlin/org/snd/mediaserver/MetadataUpdateMapper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ class MetadataUpdateMapper {
authors = getIfNotLockedOrEmpty(authors, authorsLock),
tags = getIfNotLockedOrEmpty(bookMetadata?.tags, tagsLock),
isbn = getIfNotLockedOrEmpty(bookMetadata?.isbn, isbnLock),
number = getIfNotLockedOrEmpty(bookMetadata?.number?.toString(), numberLock),
numberSort = getIfNotLockedOrEmpty(bookMetadata?.number?.start, numberSortLock),
links = getIfNotLockedOrEmpty(bookMetadata?.links, linksLock),

number = bookMetadata?.number?.toString(),
numberSort = bookMetadata?.number?.start,
numberLock = bookMetadata?.number != null,
numberSortLock = bookMetadata?.number != null,
)
}
}
Expand Down

0 comments on commit 7abf768

Please sign in to comment.