fix: resolve architecture validation errors and warnings
- Fix JS-008: Replace raw fetch() with apiClient in letzshop-vendor-directory.js - Fix JS-005: Add init guard to letzshop-vendor-directory.js - Fix JS-004: Increase search region in validator (800→2000 chars) to detect currentPage in files with setup code before return statement - Fix JS-001: Use centralized logger in media-picker.js - Fix API-002: Move database query from onboarding.py to order_service.py - Fix FE-001: Add noqa comment to search.html (shop uses custom themed pagination) - Add audit validator to validate_all.py script - Update frontend.yaml with vendor exclusion pattern Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
12
app/api/v1/vendor/onboarding.py
vendored
12
app/api/v1/vendor/onboarding.py
vendored
@@ -237,16 +237,10 @@ def trigger_order_sync(
|
||||
|
||||
# Store Celery task ID if using Celery
|
||||
if celery_task_id:
|
||||
from models.database.letzshop import LetzshopHistoricalImportJob
|
||||
from app.services.letzshop import LetzshopOrderService
|
||||
|
||||
job = (
|
||||
db.query(LetzshopHistoricalImportJob)
|
||||
.filter(LetzshopHistoricalImportJob.id == result["job_id"])
|
||||
.first()
|
||||
)
|
||||
if job:
|
||||
job.celery_task_id = celery_task_id
|
||||
db.commit()
|
||||
order_service = LetzshopOrderService(db)
|
||||
order_service.update_job_celery_task_id(result["job_id"], celery_task_id)
|
||||
|
||||
logger.info(f"Queued historical import task for job {result['job_id']}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user