Updated packages previously. Minor changes

This commit is contained in:
Scott Idem
2025-01-09 10:12:20 -05:00
parent 106e655574
commit 8d4c770f19
2 changed files with 14 additions and 11 deletions

View File

@@ -12,7 +12,7 @@ import type { key_val } from '$lib/ae_stores';
import Element_manage_hosted_file_li from '$lib/element_manage_hosted_file_li.svelte';
// import { core_func } from '$lib/ae_core_functions';
import { ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
// import { ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
import { db_core } from "$lib/ae_core/db_core";
// import { events_loc, events_sess, events_slct, events_trigger } from '$lib/ae_events_stores';
// import { events_func } from '$lib/ae_events_functions';
@@ -36,20 +36,20 @@ ae_tmp.show__direct_download = false;
// let ae_triggers: key_val = {};
let dq__where_val: string = `${link_to_type}_id`; // no more _random ???
let dq__where_eq_val: string = link_to_id ?? 'Q8lR8Ai8hx2FjbQ3C_EH1Q';
let dq__where_eq_val: string = link_to_id;
// This should include all files that are associated with an object (event, location, session, presenter, etc.)
// I am not sure why, but doing reverse() and then sortBy() seems to sort in descending order.
$: lq__hosted_file_obj_li = liveQuery(async () => {
console.log(`dq__where_val: ${dq__where_val}`);
console.log(`dq__where_eq_val: ${dq__where_eq_val}`);
// console.log(`dq__where_val: ${dq__where_val}`);
// console.log(`dq__where_eq_val: ${dq__where_eq_val}`);
let results = await db_core.file
// .where(dq__where_val)
.where('account_id')
// .equals(dq__where_eq_val)
.equals('Q8lR8Ai8hx2FjbQ3C_EH1Q')
.where(dq__where_val)
// .where('account_id')
.equals(dq__where_eq_val)
// .equals('Q8lR8Ai8hx2FjbQ3C_EH1Q')
// .reverse()
// .sortBy('created_on')
.sortBy('created_on')
// .toArray()
;
return results;