This commit is contained in:
2025-06-09 00:15:51 +09:00
parent 9827d50aab
commit d4633daa2e
2 changed files with 1 additions and 11 deletions

View File

@ -25,15 +25,6 @@ import {
updateSetting, updateSetting,
} from "./services/database.js"; } 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(); const app = new Hono();
// Basic Authentication middleware (if credentials are provided) // Basic Authentication middleware (if credentials are provided)

View File

@ -231,12 +231,11 @@ export async function saveFeed(
if (existingFeed) { if (existingFeed) {
// Update existing feed // Update existing feed
const updateStmt = db.prepare( 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( updateStmt.run(
feed.title || null, feed.title || null,
feed.description || null, feed.description || null,
feed.category || null,
feed.lastUpdated || null, feed.lastUpdated || null,
feed.active !== undefined ? (feed.active ? 1 : 0) : 1, feed.active !== undefined ? (feed.active ? 1 : 0) : 1,
feed.url, feed.url,