Skip to content

Commit 603e503

Browse files
committed
feat(crawling): cleanup get crawl by id pg query code + remove scraping bee
1 parent 8ef9db1 commit 603e503

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

docker-compose-firecrawl.yml

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ services:
5050
- NUM_WORKERS_PER_QUEUE=${NUM_WORKERS_PER_QUEUE}
5151
- BULL_AUTH_KEY=${BULL_AUTH_KEY}
5252
- TEST_API_KEY=${TEST_API_KEY}
53-
- SCRAPING_BEE_API_KEY=${SCRAPING_BEE_API_KEY}
5453
- HOST=${HOST:-0.0.0.0}
5554
- LOGGING_LEVEL=${LOGGING_LEVEL}
5655
extra_hosts:

server/src/operators/crawl_operator.rs

+1-12
Original file line numberDiff line numberDiff line change
@@ -462,18 +462,7 @@ pub async fn get_crawl_by_scrape_id_query(
462462
.await
463463
.map_err(|e| ServiceError::InternalServerError(e.to_string()))?;
464464
let request: CrawlRequestPG = crawl_requests_table::crawl_requests
465-
.select((
466-
crawl_requests_table::id,
467-
crawl_requests_table::url,
468-
crawl_requests_table::status,
469-
crawl_requests_table::crawl_type,
470-
crawl_requests_table::next_crawl_at,
471-
crawl_requests_table::interval,
472-
crawl_requests_table::crawl_options,
473-
crawl_requests_table::scrape_id,
474-
crawl_requests_table::dataset_id,
475-
crawl_requests_table::created_at,
476-
))
465+
.select(CrawlRequestPG::as_select())
477466
.filter(crawl_requests_table::scrape_id.eq(scrape_id))
478467
.first(&mut conn)
479468
.await

0 commit comments

Comments
 (0)