Skip to content

Commit

Permalink
feat(api): update series sharing labels
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Mar 3, 2022
1 parent 562c57c commit 769b0e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,10 @@ class SeriesController(
tagsLock = tagsLock ?: existing.tagsLock,
totalBookCount = if (isSet("totalBookCount")) totalBookCount else existing.totalBookCount,
totalBookCountLock = totalBookCountLock ?: existing.totalBookCountLock,
sharingLabels = if (isSet("sharingLabels")) {
if (sharingLabels != null) sharingLabels!! else emptySet()
} else existing.sharingLabels,
sharingLabelsLock = sharingLabelsLock ?: existing.sharingLabelsLock,
)
}
seriesMetadataRepository.update(updated)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,11 @@ class SeriesMetadataUpdateDto {
}

var totalBookCountLock: Boolean? = null

var sharingLabels: Set<String>?
by Delegates.observable(null) { prop, _, _ ->
isSet[prop.name] = true
}

var sharingLabelsLock: Boolean? = null
}

0 comments on commit 769b0e6

Please sign in to comment.