1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-17 18:49:15 +00:00

formatting

This commit is contained in:
Alexander Strizhakov 2020-09-07 13:54:28 +03:00
parent e11fca88d4
commit eca42566ba
No known key found for this signature in database
GPG key ID: 022896A53AEF1381

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 @@ def change do
|> Ecto.Changeset.change(value: updated_value)
|> Pleroma.Repo.update()
end
end
end