|
@@ -43,10 +43,10 @@ func (l *GetWhatsappContactListLogic) GetWhatsappContactList(req *types.Whatsapp
|
|
|
))
|
|
|
}
|
|
|
if req.Phone != nil {
|
|
|
- predicates = append(predicates, contact.WxWxidContains(*req.Phone))
|
|
|
+ predicates = append(predicates, contact.PhoneContains(*req.Phone))
|
|
|
}
|
|
|
if req.Name != nil {
|
|
|
- predicates = append(predicates, contact.NicknameContains(*req.Name))
|
|
|
+ predicates = append(predicates, contact.CnameContains(*req.Name))
|
|
|
}
|
|
|
|
|
|
data, err := l.svcCtx.DB.Contact.Query().Where(predicates...).WithContactRelationships(func(query *ent.LabelRelationshipQuery) {
|