Batch 7.3: Upsert Strategy for Duplicate Leads #77
Labels
No Label
P0 Critical
P1 High
P2 Medium
P3 Low
accessibility
backend
bug
content
data-integrity
enhancement
frontend
infra
integration
owner
owner-input
performance
performance
phase-7
phase-8
security
seo
ui
ux
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: null/Queue-North-Website#77
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Batch 7.3 — Upsert Strategy for Duplicate Zoho Leads
Phase: 7 — Zoho CRM Integration
Agent: Neo (backend)
Priority: P2 Medium — prevents duplicate lead clutter in Zoho
Problem
Currently if someone submits the contact form twice with the same email, SQLite returns 409 Conflict (correct), but the Zoho forwarding still attempts to create a second lead. Should upsert (update existing) instead of always inserting.
Tasks
GET /crm/v8/Leads/search?criteria=Email:equals:{email}PUT /crm/v8/Leads/{id}to updateFiles to modify
server/index.js— AddsearchZohoLead()and updateforwardToZoho()with upsert logicAcceptance criteria
ZOHO_ENABLED=false