Update
This commit is contained in:
@ -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)
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user