mirror of https://github.com/status-im/go-waku.git
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")
|
return nil, nil, errors.New("cant use content filters while specifying message hashes")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if pubsubTopic == "" || len(contentTopicsArr) != 0 {
|
if pubsubTopic == "" || len(contentTopicsArr) == 0 {
|
||||||
return nil, nil, errors.New("pubsubTOpic and contentTopics are required")
|
return nil, nil, errors.New("pubsubTopic and contentTopics are required")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue