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,
|
||||
|
||||
Reference in New Issue
Block a user