feat(search): align contact resolved scope
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user