fix(rest-storev3): pubsubTopic and contentTopics are required

This commit is contained in:
Richard Ramos 2024-05-15 10:38:09 -04:00
parent 6e47bd1cf0
commit 95968a780f
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760
1 changed files with 2 additions and 2 deletions

View File

@ -89,8 +89,8 @@ func getStoreParams(r *http.Request) (store.Criteria, []store.RequestOption, err
return nil, nil, errors.New("cant use content filters while specifying message hashes")
}
} else {
if pubsubTopic == "" || len(contentTopicsArr) != 0 {
return nil, nil, errors.New("pubsubTOpic and contentTopics are required")
if pubsubTopic == "" || len(contentTopicsArr) == 0 {
return nil, nil, errors.New("pubsubTopic and contentTopics are required")
}
}