diff --git a/core/src/main/scala/com/softinio/scalanews/Bloggers.scala b/core/src/main/scala/com/softinio/scalanews/Bloggers.scala index fc535dd..2c256c5 100644 --- a/core/src/main/scala/com/softinio/scalanews/Bloggers.scala +++ b/core/src/main/scala/com/softinio/scalanews/Bloggers.scala @@ -200,7 +200,7 @@ object Bloggers { .emits(List(news)) .through(fs2.text.utf8.encode) .through( - Files[IO].writeAll(directoryMarkdownFilePath, Flags(Flag.CreateNew)) + Files[IO].writeAll(nextMarkdownFilePath, Flags(Flag.CreateNew)) ) .compile .drain