imp: web: include adeclarationinfo in accounts JSON

This commit is contained in:
S. Zeid 2023-10-11 22:42:50 -05:00 committed by Simon Michael
parent 91d6f8c841
commit ac547142ae

View File

@ -95,7 +95,7 @@ getAccountsR = do
VD{caps, j} <- getViewData
when (CapView `notElem` caps) (permissionDenied "Missing the 'view' capability")
selectRep $ do
provideJson $ laccounts $ ledgerFromJournal Any j
provideJson $ flattenAccounts $ mapAccounts (accountSetDeclarationInfo j) $ ledgerRootAccount $ ledgerFromJournal Any j
getAccounttransactionsR :: Text -> Handler TypedContent
getAccounttransactionsR a = do