Skip to content

Commit

Permalink
fix: make types overlap
Browse files Browse the repository at this point in the history
  • Loading branch information
mxdvl committed Jun 12, 2024
1 parent c80226e commit e083fbb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions common/app/model/PressedPage.scala
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,12 @@ case class PressedPage(
item <- pressedCollection.curatedPlusBackfillDeduplicated
id <- {
item match {
case curatedContent: CuratedContent =>
curatedContent.content.sectionId ++ curatedContent.content.tags.map(_.id)
case curatedContent: pressed.CuratedContent => {
curatedContent.properties.maybeContent match {
case Some(content) => content.metadata.sectionId.map(_.value) ++ content.tags.tags.map(_.id)
case None => List.empty
}
}
case _ => Nil
}
}
Expand Down

0 comments on commit e083fbb

Please sign in to comment.