Wrapping up for the day. File uploads and deletes pretty much work now. Need to figure out whey the form does not refresh or just ignore?
This commit is contained in:
@@ -33,11 +33,11 @@ export async function load_ae_obj_id__archive_content(
|
||||
params: params,
|
||||
log_lvl: log_lvl
|
||||
})
|
||||
.then(function (archive_content_obj_get_result) {
|
||||
.then(async function (archive_content_obj_get_result) {
|
||||
if (archive_content_obj_get_result) {
|
||||
if (try_cache) {
|
||||
// This is expecting a list
|
||||
db_save_ae_obj_li__archive_content({
|
||||
await db_save_ae_obj_li__archive_content({
|
||||
obj_type: 'archive_content',
|
||||
obj_li: [archive_content_obj_get_result]
|
||||
|
||||
@@ -104,10 +104,10 @@ export async function load_ae_obj_li__archive_content(
|
||||
params: params,
|
||||
log_lvl: log_lvl
|
||||
})
|
||||
.then(function (archive_content_obj_li_get_result) {
|
||||
.then(async function (archive_content_obj_li_get_result) {
|
||||
if (archive_content_obj_li_get_result) {
|
||||
if (try_cache) {
|
||||
db_save_ae_obj_li__archive_content({
|
||||
await db_save_ae_obj_li__archive_content({
|
||||
obj_type: 'archive_content', obj_li: archive_content_obj_li_get_result
|
||||
});
|
||||
}
|
||||
@@ -158,9 +158,9 @@ export async function create_ae_obj__archive_content(
|
||||
return_obj: true,
|
||||
log_lvl: log_lvl
|
||||
})
|
||||
.then(function (archive_content_obj_create_result) {
|
||||
.then(async function (archive_content_obj_create_result) {
|
||||
if (archive_content_obj_create_result) {
|
||||
db_save_ae_obj_li__archive_content(
|
||||
await db_save_ae_obj_li__archive_content(
|
||||
{
|
||||
obj_type: 'archive_content',
|
||||
obj_li: [archive_content_obj_create_result]
|
||||
@@ -214,10 +214,10 @@ export async function update_ae_obj__archive_content(
|
||||
return_obj: true,
|
||||
log_lvl: log_lvl
|
||||
})
|
||||
.then(function (archive_content_obj_update_result) {
|
||||
.then(async function (archive_content_obj_update_result) {
|
||||
if (archive_content_obj_update_result) {
|
||||
if (try_cache) {
|
||||
db_save_ae_obj_li__archive_content({
|
||||
await db_save_ae_obj_li__archive_content({
|
||||
obj_type: 'archive_content', obj_li: [archive_content_obj_update_result]
|
||||
});
|
||||
}
|
||||
@@ -241,7 +241,7 @@ export async function update_ae_obj__archive_content(
|
||||
|
||||
// This function will loop through the archive_content_obj_li and save each one to the DB.
|
||||
// Updated 2024-09-25
|
||||
export function db_save_ae_obj_li__archive_content(
|
||||
export async function db_save_ae_obj_li__archive_content(
|
||||
{
|
||||
obj_type,
|
||||
obj_li,
|
||||
|
||||
Reference in New Issue
Block a user