Fix: System-wide type hardening and V3 API alignment

This commit is contained in:
Scott Idem
2026-01-22 19:22:16 -05:00
parent 9de1d4b23e
commit 4976f2d897
11 changed files with 87 additions and 56 deletions

View File

@@ -2,7 +2,7 @@ import type { key_val } from '$lib/stores/ae_stores';
import { api } from '$lib/api/api';
import { db_sponsorships } from '$lib/ae_sponsorships/db_sponsorships';
import { db_save_ae_obj_li__ae_obj } from '$lib/ae_core/core__idb_dexie';
import type { ae_Sponsorship, ae_Sponsorship_Cfg } from '$lib/types/ae_types';
import type { ae_Sponsorship, ae_SponsorshipCfg } from '$lib/types/ae_types';
const ae_promises: key_val = {};
@@ -197,7 +197,7 @@ export async function load_ae_obj_id__sponsorship_cfg({
sponsorship_cfg_id: string;
try_cache?: boolean;
log_lvl?: number;
}): Promise<ae_Sponsorship_Cfg | null> {
}): Promise<ae_SponsorshipCfg | null> {
if (log_lvl) {
console.log(`*** load_ae_obj_id__sponsorship_cfg() *** [V3] id=${sponsorship_cfg_id}`);
}
@@ -348,7 +348,7 @@ export async function create_ae_obj__sponsorship({
return await api.create_ae_obj_v3({
api_cfg,
obj_type: 'sponsorship',
data,
fields: data,
log_lvl
});
}
@@ -371,7 +371,7 @@ export async function update_ae_obj__sponsorship({
api_cfg,
obj_type: 'sponsorship',
obj_id: sponsorship_id,
data,
fields: data,
log_lvl
});
}