fix for migrate task

This commit is contained in:
Alexander 2019-11-10 22:54:37 +03:00
commit 6a4201e0b4
No known key found for this signature in database
GPG key ID: 7AE1AD696BA41708
3 changed files with 6 additions and 2 deletions

View file

@ -5,7 +5,7 @@ defmodule Pleroma.Docs.JSON do
def process(descriptions) do
config_path = "docs/generate_config.json"
with {:ok, file} <- File.open(config_path, [:write]),
with {:ok, file} <- File.open(config_path, [:write, :utf8]),
json <- generate_json(descriptions),
:ok <- IO.write(file, json),
:ok <- File.close(file) do