mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
formatting
This commit is contained in:
parent
e11fca88d4
commit
eca42566ba
1 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,7 @@ defmodule Pleroma.Repo.Migrations.RemoveCronClearOauthTokenWorkerFromObanConfig
|
||||||
use Ecto.Migration
|
use Ecto.Migration
|
||||||
|
|
||||||
def change do
|
def change do
|
||||||
with %Pleroma.ConfigDB{} = config <-
|
with %Pleroma.ConfigDB{} = config <-
|
||||||
Pleroma.ConfigDB.get_by_params(%{group: :pleroma, key: Oban}),
|
Pleroma.ConfigDB.get_by_params(%{group: :pleroma, key: Oban}),
|
||||||
crontab when is_list(crontab) <- config.value[:crontab],
|
crontab when is_list(crontab) <- config.value[:crontab],
|
||||||
index when is_integer(index) <-
|
index when is_integer(index) <-
|
||||||
|
@ -15,6 +15,5 @@ defmodule Pleroma.Repo.Migrations.RemoveCronClearOauthTokenWorkerFromObanConfig
|
||||||
|> Ecto.Changeset.change(value: updated_value)
|
|> Ecto.Changeset.change(value: updated_value)
|
||||||
|> Pleroma.Repo.update()
|
|> Pleroma.Repo.update()
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue