Now with updated POC edit and other

This commit is contained in:
Scott Idem
2024-06-21 16:03:08 -04:00
parent e5cff89acb
commit ecf2b3eca8
2 changed files with 18 additions and 11 deletions

View File

@@ -356,17 +356,19 @@ async function handle_search__event_session(
event_id,
fulltext_search_qry_str,
ft_presenter_search_qry_str,
like_search_qry_str=null,
like_presenter_search_qry_str=null,
params={},
try_cache=true,
log_lvl=0
like_search_qry_str = null,
like_presentation_search_qry_str = null,
like_presenter_search_qry_str = null,
params = {},
try_cache = true,
log_lvl = 0
}: {
api_cfg: any,
event_id: any,
fulltext_search_qry_str: null|string,
ft_presenter_search_qry_str: null|string,
like_search_qry_str: null|string,
like_presentation_search_qry_str: null|string,
like_presenter_search_qry_str: null|string,
params: any,
try_cache: boolean,
@@ -410,11 +412,14 @@ async function handle_search__event_session(
// }
// Use the AND (OR LIKE) query
if (like_search_qry_str || like_presenter_search_qry_str) {
if (like_search_qry_str || like_presentation_search_qry_str || like_presenter_search_qry_str) {
params_json['or_like'] = {};
if (like_search_qry_str && like_search_qry_str.length > 2) {
params_json['or_like']['default_qry_str'] = like_search_qry_str;
}
if (like_presentation_search_qry_str && like_presentation_search_qry_str.length > 2) {
params_json['or_like']['event_presentation_li_qry_str'] = like_presentation_search_qry_str;
}
if (like_presenter_search_qry_str && like_presenter_search_qry_str.length > 2) {
params_json['or_like']['event_presenter_li_qry_str'] = like_presenter_search_qry_str;
}
@@ -852,13 +857,13 @@ async function handle_search__event_badge(
{
api_cfg,
event_id,
type_code=null,
type_code = null,
fulltext_search_qry_str,
like_search_qry_str=null,
like_search_qry_str = null,
external_event_id,
params={},
try_cache=true,
log_lvl=0
params = {},
try_cache = true,
log_lvl = 0
}: {
api_cfg: any,
event_id: any,