fix(prospecting): fix scan-jobs batch endpoints and add job tracking
- Reorder routes: batch endpoints before /{prospect_id} to fix FastAPI
route matching (was parsing "batch" as prospect_id → 422)
- Add scan job tracking via stats_service.create_job/complete_job so
the scan-jobs table gets populated after each batch run
- Add contact scrape batch endpoint (POST /contacts/batch) with
get_pending_contact_scrape query
- Fix scan-jobs.js: explicit route map instead of naive replace
- Normalize domain_name on create/update (strip protocol, www, slash)
- Add domain_name to ProspectUpdate schema
- Add proposal for contact scraper enum + regex fixes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,7 @@ class ProspectUpdate(BaseModel):
|
||||
"""Schema for updating a prospect."""
|
||||
|
||||
business_name: str | None = Field(None, max_length=255)
|
||||
domain_name: str | None = Field(None, max_length=255)
|
||||
status: str | None = None
|
||||
source: str | None = Field(None, max_length=100)
|
||||
address: str | None = Field(None, max_length=500)
|
||||
|
||||
Reference in New Issue
Block a user