Fix: System-wide type hardening and V3 API alignment
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user