Fix accounts_ledger savePoint conversion (#2226)

This commit is contained in:
andri lim 2024-05-26 17:42:02 +07:00 committed by GitHub
parent a649e633ae
commit 5db6ee07fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -700,7 +700,7 @@ func init*(
profApi.journalGetFilter =
proc(a: BackendRef; b: int): auto =
AristoApiProfJournalGetFilterFn.profileRunner:
result = api.journalGetInx(a, b)
result = api.journalGetFilter(a, b)
profApi.journalGetInx =
proc(a: BackendRef; b: Option[FilterID]; c = false): auto =

View File

@ -24,7 +24,10 @@ import
# ------------------------------------------------------------------------------
func savePoint(sp: LedgerSpRef): impl.LedgerSavePoint =
if not sp.isNil:
wrp.LedgerSavePoint(sp).sp
else:
nil
# ----------------