60334164530, deal name AJF - ATK - 1008594063).inspection._hubspotDealId, while GET /hubspot/deal/:inspectionId resolves inspection._hubspotDealId || linkedQuote._hubspotDealId (quote where _finalInspectionId matches the inspection).upsertHsDeal); inspection sync later updates that deal via the quote’s id (upsertHsDealFromInspection prefers linkedQuote._hubspotDealId) but only writes _hubspotDealId onto the inspection when creating a new deal — not when updating an existing quote-linked deal.Frontend
attik-frontend/src/app/tools/inspections/[id]/components/integrations/HubSpot.tsx (getHubSpotData): rightSideComponent uses only inspection._hubspotDealId for “No deal linked” vs “Deal ID: …”.HubSpotContent loads hubspot/deal/${inspectionId} only when accordion is expanded (isExpanded) — header does not use that API today.Backend
attik-backend/src/routes/hubspot.ts (GET /deal/:inspectionId) — dealId = inspection._hubspotDealId || linkedQuote?._hubspotDealId.attik-backend/src/util/functions/hubspot/upsertHsDealFromInspection.ts — existingDealId = linkedQuote?._hubspotDealId || inspection._hubspotDealId; inspection _hubspotDealId set on create only.attik-backend/src/util/functions/hubspot/upsertHsDeal.ts stores _hubspotDealId on the quote.inspection._hubspotDealId after successful sync when the deal id came from the linked quote (keeps header and API aligned for other consumers).Out of scope unless expanded
published → Inspection Completed) — tracked separately.attik-frontend/src/app/tools/inspections/[id]/components/integrations/HubSpot.tsxattik-backend/src/routes/hubspot.tsattik-backend/src/util/functions/hubspot/upsertHsDealFromInspection.tsPlease authenticate to join the conversation.
Planned
Main App
5 days ago
Linear
Get notified by email when there are changes.
Planned
Main App
5 days ago
Linear
Get notified by email when there are changes.