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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user