diff options
author | Alexander <alex.strizhakov@gmail.com> | 2019-12-06 08:21:30 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-01-10 15:51:59 +0300 |
commit | 0656816c77875d87d64d89e0e549f73104104cfb (patch) | |
tree | f50d11260f92bde2352c18b6d1cb42c8bb46e90f /lib/mix/tasks/pleroma/config.ex | |
parent | 2753285b7722fdb47f0ebb2180e997cf72f65d1a (diff) | |
download | pleroma-0656816c77875d87d64d89e0e549f73104104cfb.tar.gz |
tests for setttings without an explicit key
Diffstat (limited to 'lib/mix/tasks/pleroma/config.ex')
-rw-r--r-- | lib/mix/tasks/pleroma/config.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mix/tasks/pleroma/config.ex b/lib/mix/tasks/pleroma/config.ex index bb126463c..cef02b864 100644 --- a/lib/mix/tasks/pleroma/config.ex +++ b/lib/mix/tasks/pleroma/config.ex @@ -76,10 +76,10 @@ defmodule Mix.Tasks.Pleroma.Config do |> Application.get_all_env() |> Enum.reject(fn {k, _v} -> k in [Pleroma.Repo, :env] end) |> Enum.each(fn {key, value} -> - key_str = inspect(key) + key = inspect(key) + {:ok, _} = Config.update_or_create(%{group: inspect(group), key: key, value: value}) - {:ok, _} = Config.update_or_create(%{group: ":#{group}", key: key_str, value: value}) - Mix.shell().info("settings for key #{key_str} migrated.") + Mix.shell().info("settings for key #{key} migrated.") end) Mix.shell().info("settings for group :#{group} migrated.") |