Parcourir la source

fix: include scrape_cron column in getAllSitesWithAnalytics SELECT

The query explicitly enumerates columns and was missing s.scrape_cron, so
the /api/sites response always returned scrape_cron: null even after the
PATCH /schedule endpoint successfully persisted the value. The previous
fix updated the row->object mapping but left the SQL untouched, leaving
the UI input blank after Save.
fszontagh il y a 2 mois
Parent
commit
055190799c
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/database/Database.ts

+ 1 - 0
src/database/Database.ts

@@ -651,6 +651,7 @@ export class SiteDatabase {
         s.custom_sitemap_url,
         s.max_crawl_depth,
         s.max_pages,
+        s.scrape_cron,
         s.qdrant_enabled,
         s.deleted_at,
         s.created_at,