Correction API de filtrage des SMS
This commit is contained in:
@ -103,17 +103,7 @@ func HandleGetOutbox(ctx context.Context, qry cqrs.Query) (interface{}, error) {
|
||||
match := true
|
||||
|
||||
if req.Search.Recipient != "" {
|
||||
found := false
|
||||
|
||||
if strings.Contains(sms.Recipient, req.Search.Recipient) {
|
||||
found = true
|
||||
|
||||
break
|
||||
}
|
||||
|
||||
if !found {
|
||||
match = false
|
||||
}
|
||||
match = strings.Contains(sms.Recipient, req.Search.Recipient)
|
||||
}
|
||||
|
||||
if !req.Search.After.IsZero() && !sms.SentAt.After(req.Search.After) {
|
||||
|
Reference in New Issue
Block a user