[#3213] Code formatting fix.
This commit is contained in:
parent
3edf45021e
commit
cb73456609
|
@ -98,7 +98,8 @@ def increment_data_key(key, increment \\ 1) do
|
|||
defp persist_non_data_change(:state, value) do
|
||||
with true <- get_data_key(:state) != value,
|
||||
true <- value in Pleroma.DataMigration.State.__valid_values__(),
|
||||
%{data_migration_id: data_migration_id} when not is_nil(data_migration_id) <- state() do
|
||||
%{data_migration_id: data_migration_id} when not is_nil(data_migration_id) <-
|
||||
state() do
|
||||
DataMigration.update_one_by_id(data_migration_id, state: value)
|
||||
else
|
||||
false -> :ok
|
||||
|
|
Loading…
Reference in New Issue