From e083fbbcebe95a79482e2a6ba468b4ed1bf7bc6c Mon Sep 17 00:00:00 2001 From: Max Duval Date: Wed, 12 Jun 2024 09:37:07 +0100 Subject: [PATCH] fix: make types overlap --- common/app/model/PressedPage.scala | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/app/model/PressedPage.scala b/common/app/model/PressedPage.scala index 2ecc49078ec..cbbcb1e7e82 100644 --- a/common/app/model/PressedPage.scala +++ b/common/app/model/PressedPage.scala @@ -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 } }