We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
{:ok, zipper}
find_and_update_or_create_module
1 parent d293d0f commit 24576c1Copy full SHA for 24576c1
lib/mix/tasks/ash_postgres.install.ex
@@ -219,6 +219,7 @@ defmodule Mix.Tasks.AshPostgres.Install do
219
|> remove_adapter_option()
220
|> Sourceror.Zipper.top()
221
|> configure_installed_extensions_function()
222
+ |> then(&{:ok, &1})
223
end
224
)
225
test/atomics_test.exs
@@ -119,9 +119,10 @@ defmodule AshPostgres.AtomicsTest do
119
|> Ash.create!()
120
121
# just asserting that there is no exception here
122
- post
123
- |> Ash.Changeset.for_update(:change_title_to_foo_unless_its_already_foo)
124
- |> Ash.update!()
+ Post
+ |> Ash.Query.filter(id == ^post.id)
+ |> Ash.Query.limit(1)
125
+ |> Ash.bulk_update!(:change_title_to_foo_unless_its_already_foo, %{})
126
127
128
test "an atomic works with a datetime" do
0 commit comments