More code clean up
This commit is contained in:
@@ -131,7 +131,7 @@ async function _refresh_journal_id_background({
|
||||
}: 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: 'journal',
|
||||
obj_id: journal_id,
|
||||
@@ -301,7 +301,7 @@ async function _refresh_journal_li_background({
|
||||
if (hidden === 'hidden')
|
||||
search_query.and.push({ field: 'hide', op: 'eq', value: true });
|
||||
|
||||
promise = api.search_ae_obj_v3({
|
||||
promise = api.search_ae_obj({
|
||||
api_cfg,
|
||||
obj_type: 'journal',
|
||||
search_query,
|
||||
@@ -311,7 +311,7 @@ async function _refresh_journal_li_background({
|
||||
log_lvl
|
||||
});
|
||||
} else {
|
||||
promise = api.get_ae_obj_li_v3({
|
||||
promise = api.get_ae_obj_li({
|
||||
api_cfg,
|
||||
obj_type: 'journal',
|
||||
for_obj_type,
|
||||
@@ -462,7 +462,7 @@ export async function delete_ae_obj_id__journal({
|
||||
}
|
||||
|
||||
ae_promises.delete__journal_obj = await api
|
||||
.delete_ae_obj_v3({
|
||||
.delete_ae_obj({
|
||||
api_cfg: api_cfg,
|
||||
obj_type: 'journal',
|
||||
obj_id: journal_id,
|
||||
@@ -637,7 +637,7 @@ export async function qry__journal({
|
||||
}
|
||||
|
||||
ae_promises.load__journal_obj_li = await api
|
||||
.search_ae_obj_v3({
|
||||
.search_ae_obj({
|
||||
api_cfg: api_cfg,
|
||||
obj_type: 'journal',
|
||||
search_query,
|
||||
|
||||
@@ -28,7 +28,7 @@ export async function load_ae_obj_id__journal_entry({
|
||||
}
|
||||
|
||||
ae_promises.load__journal_entry_obj = await api
|
||||
.get_ae_obj_v3({
|
||||
.get_ae_obj({
|
||||
api_cfg: api_cfg,
|
||||
obj_type: 'journal_entry',
|
||||
obj_id: journal_entry_id,
|
||||
@@ -109,7 +109,7 @@ export async function load_ae_obj_li__journal_entry({
|
||||
let promise;
|
||||
|
||||
if (for_obj_type === 'journal' && for_obj_id) {
|
||||
promise = api.get_nested_obj_li_v3({
|
||||
promise = api.get_nested_obj_li({
|
||||
api_cfg,
|
||||
parent_type: 'journal',
|
||||
parent_id: for_obj_id,
|
||||
@@ -122,7 +122,7 @@ export async function load_ae_obj_li__journal_entry({
|
||||
log_lvl
|
||||
});
|
||||
} else {
|
||||
promise = api.get_ae_obj_li_v3({
|
||||
promise = api.get_ae_obj_li({
|
||||
api_cfg,
|
||||
obj_type: 'journal_entry',
|
||||
for_obj_type,
|
||||
@@ -281,7 +281,7 @@ export async function delete_ae_obj_id__journal_entry({
|
||||
}
|
||||
|
||||
ae_promises.delete__journal_entry_obj = await api
|
||||
.delete_ae_obj_v3({
|
||||
.delete_ae_obj({
|
||||
api_cfg: api_cfg,
|
||||
obj_type: 'journal_entry',
|
||||
obj_id: journal_entry_id,
|
||||
@@ -426,7 +426,7 @@ export async function qry__journal_entry({
|
||||
}
|
||||
|
||||
ae_promises.load__journal_entry_obj_li = await api
|
||||
.search_ae_obj_v3({
|
||||
.search_ae_obj({
|
||||
api_cfg: api_cfg,
|
||||
obj_type: 'journal_entry',
|
||||
search_query,
|
||||
|
||||
Reference in New Issue
Block a user