Correction API de filtrage des SMS

This commit is contained in:
2021-10-15 15:37:53 +02:00
parent 85c2040524
commit 33a662e21d
3 changed files with 2 additions and 44 deletions

View File

@ -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) {