Browse Source

formatting

merge-requests/3010/head
Alexander Strizhakov 3 years ago
parent
commit
eca42566ba
No known key found for this signature in database GPG Key ID: 22896A53AEF1381
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      priv/repo/migrations/20200907084956_remove_cron_clear_oauth_token_worker_from_oban_config.exs

+ 1
- 2
priv/repo/migrations/20200907084956_remove_cron_clear_oauth_token_worker_from_oban_config.exs View File

@@ -2,7 +2,7 @@ defmodule Pleroma.Repo.Migrations.RemoveCronClearOauthTokenWorkerFromObanConfig
use Ecto.Migration

def change do
with %Pleroma.ConfigDB{} = config <-
with %Pleroma.ConfigDB{} = config <-
Pleroma.ConfigDB.get_by_params(%{group: :pleroma, key: Oban}),
crontab when is_list(crontab) <- config.value[:crontab],
index when is_integer(index) <-
@@ -15,6 +15,5 @@ defmodule Pleroma.Repo.Migrations.RemoveCronClearOauthTokenWorkerFromObanConfig
|> Ecto.Changeset.change(value: updated_value)
|> Pleroma.Repo.update()
end

end
end

Loading…
Cancel
Save