feat: standardize OrderBy types and fix data model mismatches
- Update ae_types.ts with joined fields for deep layout loading - Fix OrderBy vs OrderBy[] type mismatch in API v2/v3 and generic CRUD - Apply 'as const' to order_by_li defaults in core/event libraries - Resolve type errors in reports_presenters and reports_files Svelte components
This commit is contained in:
@@ -4,6 +4,7 @@ console.log(`Events - [event_id] launcher +layout.ts start`);
|
||||
import { error } from '@sveltejs/kit';
|
||||
import { browser } from '$app/environment';
|
||||
import { events_func } from '$lib/ae_events_functions';
|
||||
import type { ae_Event } from '$lib/types/ae_types';
|
||||
|
||||
export async function load({ params, parent, url }) {
|
||||
// route
|
||||
@@ -32,7 +33,7 @@ export async function load({ params, parent, url }) {
|
||||
// console.log(`TEST URL Params`, params);
|
||||
// console.log(`TEST URL`, url);
|
||||
|
||||
const load_event_obj = await events_func.load_ae_obj_id__event({
|
||||
const load_event_obj: ae_Event | null = await events_func.load_ae_obj_id__event({
|
||||
api_cfg: ae_acct.api,
|
||||
event_id: event_id,
|
||||
// inc_file_li: true,
|
||||
|
||||
Reference in New Issue
Block a user