Doing some more work on the new Notes objects.
This commit is contained in:
38
src/routes/(notes)/notes/+page.ts
Normal file
38
src/routes/(notes)/notes/+page.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
/** @type {import('./$types').PageLoad} */
|
||||
|
||||
import { error } from '@sveltejs/kit';
|
||||
import { notes_func } from '$lib/ae_notes/ae_notes_functions';
|
||||
|
||||
export async function load({ parent }) {
|
||||
let log_lvl: number = 0;
|
||||
|
||||
let data = await parent();
|
||||
|
||||
// let account_id = data.account_id;
|
||||
// if (!account_id) {
|
||||
// console.log(`ae_notes +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 note.conference = true?
|
||||
// let load_note_obj_li = await notes_func.handle_load_ae_obj_li__note({
|
||||
// api_cfg: ae_acct.api,
|
||||
// account_id: account_id,
|
||||
// params: {enabled: 'enabled', qry__limit: 25},
|
||||
// try_cache: false,
|
||||
// log_lvl: 1
|
||||
// });
|
||||
// ae_acct.slct.note_obj_li = load_note_obj_li;
|
||||
|
||||
// data[account_id] = ae_acct;
|
||||
|
||||
return data;
|
||||
|
||||
// return {
|
||||
// ae_notes_page_ts: true,
|
||||
// };
|
||||
}
|
||||
Reference in New Issue
Block a user