mirror of
https://github.com/status-im/go-waku.git
synced 2025-02-05 10:23:32 +00:00
fix(rest-storev3): pubsubTopic and contentTopics are required
This commit is contained in:
parent
6e47bd1cf0
commit
95968a780f
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user