From 3268b82ae94f93b86247e280dd1f49610e34509f Mon Sep 17 00:00:00 2001 From: Max Duval Date: Wed, 12 Jun 2024 10:25:31 +0100 Subject: [PATCH] Fix `CuratedContent` type mismatch (#27217) --- common/app/model/PressedPage.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/app/model/PressedPage.scala b/common/app/model/PressedPage.scala index 2ecc49078ece..074533f078de 100644 --- a/common/app/model/PressedPage.scala +++ b/common/app/model/PressedPage.scala @@ -134,8 +134,10 @@ 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 + .map(content => content.metadata.sectionId.map(_.value) ++ content.tags.tags.map(_.id)) + .getOrElse(Nil) case _ => Nil } }