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