More work on reports and config options

This commit is contained in:
Scott Idem
2025-09-08 17:43:30 -04:00
parent 438d366b98
commit f842392aac
5 changed files with 144 additions and 102 deletions

View File

@@ -191,11 +191,11 @@ export async function get_ae_obj_li_for_obj_id_crud_v2(
headers['order_by_li'] = JSON.stringify(order_by_li);
}
if (limit >= 0) {
if (limit > 0) {
params['limit'] = limit;
}
if (offset >= 0) {
if (offset > 0) {
params['offset'] = offset;
}

View File

@@ -387,7 +387,7 @@ export async function qry__event_file(
qry_file_purpose = null,
enabled = 'enabled',
hidden = 'not_hidden',
limit = 50,
limit = 49,
offset = 0,
order_by_li = {'priority': 'DESC', 'sort': 'DESC', 'created_on': 'DESC', 'updated_on': 'DESC', 'filename': 'ASC', 'extension': 'ASC', 'hosted_file_size': 'ASC'},
params = {},
@@ -451,6 +451,10 @@ export async function qry__event_file(
params_json['qry'].push(qry_param);
}
// if (!limit || limit <= 0) {
// limit = null;
// }
if (log_lvl) {
console.log('params_json:', params_json);
}