From d4633daa2e5f53e435b5c78a4c8cb4b015d12ecf Mon Sep 17 00:00:00 2001 From: Satsuki Akiba Date: Mon, 9 Jun 2025 00:15:51 +0900 Subject: [PATCH] Update --- admin-server.ts | 9 --------- services/database.ts | 3 +-- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/admin-server.ts b/admin-server.ts index 8598bd5..8ab90a9 100644 --- a/admin-server.ts +++ b/admin-server.ts @@ -25,15 +25,6 @@ import { updateSetting, } from "./services/database.js"; -// Regenerate static files on startup -try { - const { regenerateStartupFiles } = await import("./services/podcast.js"); - await regenerateStartupFiles(); -} catch (error) { - console.error("Failed to regenerate startup files on admin server:", error); - // Don't exit - the admin server can still work without the regenerated files -} - const app = new Hono(); // Basic Authentication middleware (if credentials are provided) diff --git a/services/database.ts b/services/database.ts index a816734..bf40cde 100644 --- a/services/database.ts +++ b/services/database.ts @@ -231,12 +231,11 @@ export async function saveFeed( if (existingFeed) { // Update existing feed const updateStmt = db.prepare( - "UPDATE feeds SET title = ?, description = ?, category = ?, last_updated = ?, active = ? WHERE url = ?", + "UPDATE feeds SET title = ?, description = ?, last_updated = ?, active = ? WHERE url = ?", ); updateStmt.run( feed.title || null, feed.description || null, - feed.category || null, feed.lastUpdated || null, feed.active !== undefined ? (feed.active ? 1 : 0) : 1, feed.url,