From d26f0652e5c5f145dba86ad13915f192d03bb55a Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Mon, 2 Feb 2026 20:10:20 -0300 Subject: [PATCH] fix(website-crawler): Add missing crawl_status column to SELECT query Fix the SQL query in check_and_crawl_websites() to also include crawl_status in the SELECT clause. The WebsiteCrawlRecord struct expects this field but it was only present in the WHERE clause, causing Diesel to fail with 'Column crawl_status was not present in query'. This resolves the second website crawler service error. --- src/core/kb/website_crawler_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/kb/website_crawler_service.rs b/src/core/kb/website_crawler_service.rs index 8cc295e88..138213210 100644 --- a/src/core/kb/website_crawler_service.rs +++ b/src/core/kb/website_crawler_service.rs @@ -81,7 +81,7 @@ impl WebsiteCrawlerService { } let websites = diesel::sql_query( - "SELECT id, bot_id, url, expires_policy, refresh_policy, max_depth, max_pages, next_crawl + "SELECT id, bot_id, url, expires_policy, refresh_policy, max_depth, max_pages, next_crawl, crawl_status FROM website_crawls WHERE next_crawl <= NOW() AND crawl_status != 2