From 702da83ce58009cff0cabf737ad41c5aa9ffcb58 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Wed, 25 Sep 2024 18:54:45 -0400 Subject: [PATCH] Clean up before I wrap up for the day. --- src/lib/ae_archives__archive.ts | 1 - src/lib/ae_posts__post.ts | 7 +++++-- src/lib/db_archives.ts | 2 ++ src/lib/db_posts.ts | 4 ++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/lib/ae_archives__archive.ts b/src/lib/ae_archives__archive.ts index c98c1a54..e5cdccb5 100644 --- a/src/lib/ae_archives__archive.ts +++ b/src/lib/ae_archives__archive.ts @@ -69,7 +69,6 @@ export async function load_ae_obj_id__archive( api_cfg: api_cfg, for_obj_type: 'archive', for_obj_id: archive_id, - inc_content_li: inc_content_li, params: {qry__enabled: 'all', qry__limit: 25}, try_cache: try_cache, log_lvl: log_lvl diff --git a/src/lib/ae_posts__post.ts b/src/lib/ae_posts__post.ts index 61f0f9b3..7083f6d0 100644 --- a/src/lib/ae_posts__post.ts +++ b/src/lib/ae_posts__post.ts @@ -589,8 +589,11 @@ export function db_save_ae_obj_li__post( account_id: obj.account_id_random, - title: null|string; - content?: null|string; + topic_id: obj.topic_id, + topic: obj.topic, + + title: obj.title, + content: obj.content, anonymous: obj.anonymous, full_name: obj.full_name, diff --git a/src/lib/db_archives.ts b/src/lib/db_archives.ts index 3ba6748e..ebd24cca 100644 --- a/src/lib/db_archives.ts +++ b/src/lib/db_archives.ts @@ -110,6 +110,8 @@ export interface Archive_Content { updated_on?: null|Date; // Additional fields for convenience (database views) + archive_code?: null|string; + archive_name?: null|string; } diff --git a/src/lib/db_posts.ts b/src/lib/db_posts.ts index 5c113db7..fef522e1 100644 --- a/src/lib/db_posts.ts +++ b/src/lib/db_posts.ts @@ -19,8 +19,8 @@ export interface Post { external_person_id?: null|string; // For IDAA this is the Novi UUID user_id?: null|string; - topic_id: string; - topic: string; // or topic_name? + topic_id?: string; + topic?: string; // or topic_name? // name: null|string; // summary?: null|string;