Various bug fixes and improvements. Now able to correctly create and delete Recovery Meetings.

This commit is contained in:
Scott Idem
2025-07-11 13:12:45 -04:00
parent 6e4649882c
commit b133aa1285
6 changed files with 81 additions and 34 deletions

View File

@@ -552,13 +552,13 @@ export async function qry_ae_obj_li__event(
}
// Updated 2024-12-02
// Updated 2025-07-11
export async function create_ae_obj__event(
{
api_cfg,
account_id,
data_kv,
params={},
params = {},
try_cache = true,
log_lvl = 0
}: {
@@ -574,6 +574,11 @@ export async function create_ae_obj__event(
console.log(`*** create_ae_obj__event() *** account_id=${account_id}`);
}
if (!account_id) {
console.log(`ERROR: Events - Event - account_id required to create`);
return false;
}
ae_promises.create__event = await api.create_ae_obj_crud({
api_cfg: api_cfg,
obj_type: 'event',

View File

@@ -52,6 +52,10 @@ let idaa_local_data_struct: key_val = {
limit: 150,
offset: 0,
edit_kv: {}, // Used to track which archive objects are being edited
edit__archive_obj: null,
edit__archive_content_obj: null,
// qry__order_by: 'updated_on', // For the IDB index query
// qry__order_by_li: {'priority': 'DESC', 'sort': 'DESC', 'updated_on': 'DESC', 'created_on': 'DESC', 'name': 'ASC'}, // For the SQL query
},
@@ -61,6 +65,11 @@ let idaa_local_data_struct: key_val = {
hidden: 'not_hidden', // all, hidden, not_hidden
limit: 50,
offset: 0,
edit_kv: {}, // Used to track which post objects are being edited
edit__post_obj: null,
edit__post_comment_obj: null,
show_list__post_obj_li: true,
qry__enabled: 'enabled', // all, disabled, enabled
@@ -70,11 +79,13 @@ let idaa_local_data_struct: key_val = {
qry__order_by: 'updated_on', // For the IDB index query
qry__order_by_li: {'priority': 'DESC', 'sort': 'DESC', 'updated_on': 'DESC', 'created_on': 'DESC', 'title': 'ASC'}, // For the SQL query
edit_kv: {}, // Used to track which post objects are being edited
},
recovery_meetings: {
edit_kv: {},
edit_kv: {}, // Used to track which event objects are being edited
edit__event_obj: null,
qry__enabled: 'enabled', // all, disabled, enabled
qry__hidden: 'not_hidden', // all, hidden, not_hidden
qry__limit: 150,
@@ -117,6 +128,9 @@ let idaa_session_data_struct: key_val = {
bb: {
qry__status: null,
edit__post_obj: null,
show__inline_edit__post_obj: null,
show__modal_edit__post_id: null,
show__modal_view__post_id: null,
@@ -127,6 +141,9 @@ let idaa_session_data_struct: key_val = {
recovery_meetings: {
qry__status: null,
qry__fulltext_str: null,
edit__event_obj: null,
status_qry__last_request_str: null,
show__modal_edit: false,