General clean up of files. Less debug. Less extra stuff.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** @type {import('./$types').LayoutLoad} */
|
||||
console.log(`IDAA BB - [account_id] +layout.ts start`);
|
||||
|
||||
import { error } from '@sveltejs/kit';
|
||||
// import { error } from '@sveltejs/kit';
|
||||
import { browser } from '$app/environment';
|
||||
import { archives_func } from '$lib/ae_archives/ae_archives_functions';
|
||||
|
||||
@@ -15,31 +15,33 @@ export async function load({ fetch, params, parent }) { // route
|
||||
let ae_acct = data[account_id];
|
||||
// console.log(`ae_acct = `, ae_acct);
|
||||
|
||||
if (!account_id) {
|
||||
console.log(`ae IDAA Archives - [account_id] +page.ts: The account_id was not found!!!`);
|
||||
error(404, {
|
||||
message: 'Account ID not found'
|
||||
});
|
||||
}
|
||||
// if (!account_id) {
|
||||
// console.log(`ae IDAA Archives - [account_id] +page.ts: The account_id was not found!!!`);
|
||||
// error(404, {
|
||||
// message: 'Account ID not found'
|
||||
// });
|
||||
// }
|
||||
|
||||
ae_acct.slct.account_id = account_id;
|
||||
// ae_acct.slct.account_id = account_id;
|
||||
|
||||
if (browser) {
|
||||
let load_event_obj_li = archives_func.load_ae_obj_li__archive({
|
||||
let load_archive_obj_li = archives_func.load_ae_obj_li__archive({
|
||||
api_cfg: ae_acct.api,
|
||||
for_obj_type: 'account',
|
||||
for_obj_id: account_id,
|
||||
inc_content_li: true,
|
||||
enabled: 'enabled',
|
||||
hidden: 'not_hidden',
|
||||
limit: 20,
|
||||
limit: 29,
|
||||
order_by_li: {'priority': 'DESC', 'sort': 'DESC', 'updated_on': 'DESC', 'created_on': 'DESC', 'name': 'ASC'},
|
||||
params: params,
|
||||
try_cache: true,
|
||||
log_lvl: 2
|
||||
log_lvl: log_lvl
|
||||
});
|
||||
console.log(`load_event_obj_li = `, load_event_obj_li);
|
||||
ae_acct.slct.event_obj_li = load_event_obj_li;
|
||||
if (log_lvl) {
|
||||
console.log(`load_archive_obj_li = `, load_archive_obj_li);
|
||||
}
|
||||
ae_acct.slct.archive_obj_li = load_archive_obj_li;
|
||||
}
|
||||
|
||||
// WARNING: Precaution against shared data between sites and sessions.
|
||||
|
||||
Reference in New Issue
Block a user