Code clean up. Journal IDB save has been updated to properly await.

This commit is contained in:
Scott Idem
2025-05-09 13:44:19 -04:00
parent 8c81f6f65e
commit 8f1f7bfa7e
5 changed files with 87 additions and 68 deletions

View File

@@ -36,10 +36,16 @@ export async function load({ fetch, parent }) {
ae_acct.slct.journal_obj_li = load_journal_obj_li;
}
// console.log(`ae_acct = `, ae_acct);
// WARNING: This does not currently work because the person_id has not been set yet.
let person_id = ae_acct.loc.person_id;
// console.log(`person_id = `, person_id);
let load_journal_obj_li = await journals_func.load_ae_obj_li__journal({
api_cfg: ae_acct.api,
for_obj_type: 'account',
for_obj_id: account_id,
qry_person_id: person_id,
inc_entry_li: true,
hidden: 'all', // 'not_hidden'
enabled: 'enabled',
@@ -47,7 +53,7 @@ export async function load({ fetch, parent }) {
limit: 25,
// params: ae_params,
try_cache: true,
log_lvl: log_lvl
log_lvl: 2
});
ae_acct.slct.journal_obj_li = load_journal_obj_li;