More code clean up
This commit is contained in:
@@ -154,7 +154,7 @@ export async function create_ae_obj__account({
|
||||
}
|
||||
|
||||
ae_promises.create__account = await api
|
||||
.create_ae_obj_v3({
|
||||
.create_ae_obj({
|
||||
api_cfg: api_cfg,
|
||||
obj_type: 'account',
|
||||
fields: data_kv,
|
||||
@@ -209,7 +209,7 @@ export async function update_ae_obj__account({
|
||||
console.log(`*** update_ae_obj__account() *** account_id=${account_id}`, data_kv);
|
||||
}
|
||||
|
||||
const result = await api.update_ae_obj_v3({
|
||||
const result = await api.update_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'account',
|
||||
obj_id: account_id,
|
||||
|
||||
@@ -104,7 +104,7 @@ export async function create_ae_obj__activity_log({
|
||||
return null;
|
||||
}
|
||||
|
||||
ae_promises.create__activity_log = await api.create_ae_obj_v3({
|
||||
ae_promises.create__activity_log = await api.create_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'activity_log',
|
||||
fields: {
|
||||
@@ -136,7 +136,7 @@ export async function update_ae_obj__activity_log({
|
||||
console.log(`*** update_ae_obj__activity_log() *** activity_log_id=${activity_log_id}`);
|
||||
}
|
||||
|
||||
ae_promises.update__activity_log_obj = await api.update_ae_obj_v3({
|
||||
ae_promises.update__activity_log_obj = await api.update_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'activity_log',
|
||||
obj_id: activity_log_id,
|
||||
|
||||
@@ -124,7 +124,7 @@ export async function create_ae_obj__address({
|
||||
try_cache?: boolean;
|
||||
log_lvl?: number;
|
||||
}): Promise<ae_Address | null> {
|
||||
const result = await api.create_ae_obj_v3({
|
||||
const result = await api.create_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'address',
|
||||
fields: {
|
||||
@@ -164,7 +164,7 @@ export async function update_ae_obj__address({
|
||||
try_cache?: boolean;
|
||||
log_lvl?: number;
|
||||
}): Promise<ae_Address | null> {
|
||||
const result = await api.update_ae_obj_v3({
|
||||
const result = await api.update_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'address',
|
||||
obj_id: address_id,
|
||||
|
||||
@@ -122,7 +122,7 @@ export async function create_ae_obj__contact({
|
||||
try_cache?: boolean;
|
||||
log_lvl?: number;
|
||||
}): Promise<ae_Contact | null> {
|
||||
const result = await api.create_ae_obj_v3({
|
||||
const result = await api.create_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'contact',
|
||||
fields: {
|
||||
@@ -162,7 +162,7 @@ export async function update_ae_obj__contact({
|
||||
try_cache?: boolean;
|
||||
log_lvl?: number;
|
||||
}): Promise<ae_Contact | null> {
|
||||
const result = await api.update_ae_obj_v3({
|
||||
const result = await api.update_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'contact',
|
||||
obj_id: contact_id,
|
||||
|
||||
@@ -207,7 +207,7 @@ export async function create_ae_obj__person({
|
||||
if (account_id) fields.account_id_random = account_id;
|
||||
if (user_id) fields.user_id_random = user_id;
|
||||
|
||||
const result = await api.create_ae_obj_v3({
|
||||
const result = await api.create_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'person',
|
||||
fields,
|
||||
@@ -248,7 +248,7 @@ export async function update_ae_obj__person({
|
||||
try_cache?: boolean;
|
||||
log_lvl?: number;
|
||||
}): Promise<ae_Person | null> {
|
||||
const result = await api.update_ae_obj_v3({
|
||||
const result = await api.update_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'person',
|
||||
obj_id: person_id,
|
||||
|
||||
@@ -331,7 +331,7 @@ export async function create_ae_obj__site({
|
||||
try_cache?: boolean;
|
||||
log_lvl?: number;
|
||||
}): Promise<ae_Site | null> {
|
||||
const result = await api.create_ae_obj_v3({
|
||||
const result = await api.create_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'site',
|
||||
fields: {
|
||||
@@ -375,7 +375,7 @@ export async function update_ae_obj__site({
|
||||
try_cache?: boolean;
|
||||
log_lvl?: number;
|
||||
}): Promise<ae_Site | null> {
|
||||
const result = await api.update_ae_obj_v3({
|
||||
const result = await api.update_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'site',
|
||||
obj_id: site_id,
|
||||
@@ -518,7 +518,7 @@ export async function create_ae_obj__site_domain({
|
||||
try_cache?: boolean;
|
||||
log_lvl?: number;
|
||||
}): Promise<ae_SiteDomain | null> {
|
||||
const result = await api.create_nested_obj_v3({
|
||||
const result = await api.create_nested_obj({
|
||||
api_cfg,
|
||||
parent_type: 'site',
|
||||
parent_id: site_id,
|
||||
@@ -564,7 +564,7 @@ export async function update_ae_obj__site_domain({
|
||||
try_cache?: boolean;
|
||||
log_lvl?: number;
|
||||
}): Promise<ae_SiteDomain | null> {
|
||||
const result = await api.update_nested_obj_v3({
|
||||
const result = await api.update_nested_obj({
|
||||
api_cfg,
|
||||
parent_type: 'site',
|
||||
parent_id: site_id,
|
||||
|
||||
@@ -197,7 +197,7 @@ export async function create_ae_obj__user({
|
||||
const fields: key_val = { ...data_kv };
|
||||
if (account_id) fields.account_id_random = account_id;
|
||||
|
||||
const result = await api.create_ae_obj_v3({
|
||||
const result = await api.create_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'user',
|
||||
fields,
|
||||
@@ -238,7 +238,7 @@ export async function update_ae_obj__user({
|
||||
try_cache?: boolean;
|
||||
log_lvl?: number;
|
||||
}): Promise<ae_User | null> {
|
||||
const result = await api.update_ae_obj_v3({
|
||||
const result = await api.update_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'user',
|
||||
obj_id: user_id,
|
||||
|
||||
Reference in New Issue
Block a user