Skip to content

Commit faff901

Browse files
authored
fix: use correct module reference in installer(#82)
fix: Use correct argument name for :balance_as_of calc in installer
1 parent 6699725 commit faff901

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mix/tasks/ash_double_entry.install.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ if Code.ensure_loaded?(Igniter) do
263263
264264
read :lock_accounts do
265265
# Used to lock accounts while doing ledger operations
266-
prepare {AshDoubleEntry.Preparations.LockForUpdate, []}
266+
prepare {AshDoubleEntry.Account.Preparations.LockForUpdate, []}
267267
end
268268
end
269269
@@ -286,7 +286,7 @@ if Code.ensure_loaded?(Igniter) do
286286
calculate :balance_as_of, :money do
287287
calculation {AshDoubleEntry.Account.Calculations.BalanceAsOf, resource: __MODULE__}
288288
289-
argument :ulid, AshDoubleEntry.ULID do
289+
argument :timestamp, AshDoubleEntry.ULID do
290290
allow_nil? false
291291
allow_expr? true
292292
default &DateTime.utc_now/0

0 commit comments

Comments
 (0)