fix deprecation
This commit is contained in:
parent
ea01043405
commit
227663f0f0
|
@ -36,7 +36,7 @@ final class BlogApi(prismicUrl: String, collection: String) {
|
|||
|
||||
object BlogApi {
|
||||
|
||||
def extract(body: Fragment.StructuredText): String =
|
||||
def extract(body: fragments.StructuredText): String =
|
||||
body.blocks
|
||||
.takeWhile(_.isInstanceOf[Fragment.StructuredText.Block.Paragraph])
|
||||
.take(2).map {
|
||||
|
|
Loading…
Reference in a new issue