Skip to content

Commit 0570dcc

Browse files
committed
fix: when an atomic update is fully skipped, run the query if it could produce errors
1 parent 1228fcd commit 0570dcc

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ Welcome! `AshPostgres` is the PostgreSQL data layer for [Ash Framework](https://
3737

3838
## Reference
3939

40-
- [AshPostgres.DataLayer DSL](documentation/dsls/DSL:-AshPostgres.DataLayer.md)
40+
- [AshPostgres.DataLayer DSL](documentation/dsls/DSL-AshPostgres.DataLayer.md)
File renamed without changes.

lib/migration_compile_cache.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ defmodule AshPostgres.MigrationCompileCache do
1919
Compile a file, caching the result for future calls.
2020
"""
2121
def compile_file(file) do
22-
Agent.get_and_update(__MODULE__, fn state ->
22+
Agent.get_and_update(__MODULE__, fn state ->
2323
new_state = ensure_compiled(state, file)
2424
{Map.get(new_state, file), new_state}
2525
end)
@@ -30,9 +30,9 @@ defmodule AshPostgres.MigrationCompileCache do
3030
nil ->
3131
compiled = Code.compile_file(file)
3232
Map.put(state, file, compiled)
33+
3334
_ ->
3435
state
3536
end
3637
end
37-
3838
end

lib/multitenancy.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ defmodule AshPostgres.MultiTenancy do
7070
"file #{Path.relative_to_cwd(file)} does not define an Ecto.Migration"
7171
end
7272
end
73-
73+
7474
defp compile_file(file) do
7575
AshPostgres.MigrationCompileCache.start_link()
7676
AshPostgres.MigrationCompileCache.compile_file(file)

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ defmodule AshPostgres.MixProject do
9797
"documentation/topics/advanced/expressions.md",
9898
"documentation/topics/advanced/schema-based-multitenancy.md",
9999
"documentation/topics/advanced/manual-relationships.md",
100-
"documentation/dsls/DSL:-AshPostgres.DataLayer.md",
100+
"documentation/dsls/DSL-AshPostgres.DataLayer.md",
101101
"CHANGELOG.md"
102102
],
103103
groups_for_extras: [

0 commit comments

Comments
 (0)