feat(crm): merge company slogan variants in dedupe grouping

Treat names like "Affirm" and "Affirm — Fraud Engineering" as the same
company for dedupe, deal matching, members, and applications sync lookup.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-24 12:40:27 +01:00
co-authored by Cursor
parent c77519fac5
commit 3eb649c58b
7 changed files with 109 additions and 9 deletions
+1 -1
View File
@@ -406,7 +406,7 @@ func findExistingOpp(ctx context.Context, c *onlyoffice.Client, title string) ma
return nil
}
for _, d := range deals {
if strings.TrimSpace(fmt.Sprint(d["title"])) == needle {
if onlyoffice.OpportunityTitlesMatch(fmt.Sprint(d["title"]), needle) {
return d
}
}