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