More code clean up
This commit is contained in:
@@ -15,7 +15,7 @@ export async function load_ae_obj_id__sponsorship({
|
||||
sponsorship_id: string;
|
||||
log_lvl?: number;
|
||||
}): Promise<ae_Sponsorship | null> {
|
||||
return await api.get_ae_obj_v3({
|
||||
return await api.get_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'sponsorship',
|
||||
obj_id: sponsorship_id,
|
||||
@@ -32,7 +32,7 @@ export async function load_ae_obj_li__sponsorship({
|
||||
for_obj_id: string;
|
||||
log_lvl?: number;
|
||||
}): Promise<ae_Sponsorship[]> {
|
||||
return await api.get_ae_obj_li_v3({
|
||||
return await api.get_ae_obj_li({
|
||||
api_cfg,
|
||||
obj_type: 'sponsorship',
|
||||
for_obj_type: 'account',
|
||||
|
||||
@@ -222,7 +222,7 @@ export async function load_ae_obj_id__sponsorship_cfg({
|
||||
async function _refresh_sponsorship_cfg_id_background({ api_cfg, sponsorship_cfg_id, try_cache, log_lvl }: any) {
|
||||
if (typeof navigator !== 'undefined' && !navigator.onLine) return null;
|
||||
try {
|
||||
const result = await api.get_ae_obj_v3({
|
||||
const result = await api.get_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'sponsorship_cfg',
|
||||
obj_id: sponsorship_cfg_id,
|
||||
@@ -279,7 +279,7 @@ export async function load_ae_obj_id__sponsorship({
|
||||
async function _refresh_sponsorship_id_background({ api_cfg, sponsorship_id, try_cache, log_lvl }: any) {
|
||||
if (typeof navigator !== 'undefined' && !navigator.onLine) return null;
|
||||
try {
|
||||
const result = await api.get_ae_obj_v3({
|
||||
const result = await api.get_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'sponsorship',
|
||||
obj_id: sponsorship_id,
|
||||
@@ -335,7 +335,7 @@ export async function load_ae_obj_li__sponsorship({
|
||||
console.log(`*** load_ae_obj_li__sponsorship() *** [V3] for=${for_obj_type}:${for_obj_id}`);
|
||||
}
|
||||
|
||||
const result_li = await api.get_ae_obj_li_v3({
|
||||
const result_li = await api.get_ae_obj_li({
|
||||
api_cfg,
|
||||
obj_type: 'sponsorship',
|
||||
for_obj_type,
|
||||
@@ -420,7 +420,7 @@ export async function delete_ae_obj__sponsorship({
|
||||
sponsorship_id: string;
|
||||
log_lvl?: number;
|
||||
}) {
|
||||
return await api.delete_ae_obj_v3({
|
||||
return await api.delete_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'sponsorship',
|
||||
obj_id: sponsorship_id,
|
||||
|
||||
Reference in New Issue
Block a user