feat(search): align contact resolved scope

This commit is contained in:
2026-06-07 05:41:34 +08:00
parent 0baee8e47a
commit 7b232ce850
11 changed files with 294 additions and 97 deletions
+1 -1
View File
@@ -220,7 +220,7 @@ func (h *SearchHandler) SearchContacts(c *gin.Context) {
// Force type to contacts only
filter.Types = []search.SearchResultType{search.ResultTypeContact}
results, total, svcErr := h.svc.SearchContacts(c.Request.Context(), accountID, query, &filter)
results, total, svcErr := h.svc.SearchResolvedContacts(c.Request.Context(), accountID, query, &filter)
if svcErr != nil {
response.AbortWithStatusError(c, http.StatusUnprocessableEntity, response.ErrValidation, "contact search failed")
return