Better (less) logging and other clean up
This commit is contained in:
@@ -1,12 +1,21 @@
|
||||
/** @type {import('./$types').PageLoad} */
|
||||
|
||||
import { error } from '@sveltejs/kit';
|
||||
import { events_func } from '$lib/ae_events_functions';
|
||||
|
||||
export async function load({ parent }) {
|
||||
let log_lvl = 0;
|
||||
|
||||
let data = await parent();
|
||||
|
||||
let account_id = data.account_id;
|
||||
if (!account_id) {
|
||||
console.log(`events_pres_mgmt +page.ts: The account_id was not found in the data!!!`);
|
||||
error(500, {
|
||||
message: 'Not found'
|
||||
});
|
||||
}
|
||||
|
||||
let ae_acct = data[account_id];
|
||||
|
||||
// Should we limit these to event.conference = true?
|
||||
|
||||
Reference in New Issue
Block a user