Hardened Journals and IDAA module load functions for offline resilience and ghost account support.

This commit is contained in:
Scott Idem
2026-01-16 17:04:56 -05:00
parent f1f905c626
commit 09d1aa6720
8 changed files with 114 additions and 25 deletions

View File

@@ -17,7 +17,18 @@ export async function load({ params, parent }) {
return false;
}
const ae_acct = parent_data[account_id];
let ae_acct = parent_data[account_id];
if (!ae_acct) {
console.warn(`ae Journals +layout.ts: Account ${account_id} not found in parent data. Initializing ghost acct.`);
ae_acct = {
api: parent_data.ae_api || {},
slct: {
account_id: account_id
}
};
}
if (log_lvl) {
console.log(`ae_acct = `, ae_acct);
}