mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-02 14:03:06 +00:00
fix: libwaku store request parsing (#3294)
This commit is contained in:
parent
b3e1dc3f49
commit
9063605669
@ -23,9 +23,11 @@ type StoreRequest* = object
|
||||
func fromJsonNode(
|
||||
T: type StoreRequest, jsonContent: JsonNode
|
||||
): Result[StoreQueryRequest, string] =
|
||||
let contentTopics = collect(newSeq):
|
||||
for cTopic in jsonContent["content_topics"].getElems():
|
||||
cTopic.getStr()
|
||||
var contentTopics: seq[string]
|
||||
if jsonContent.contains("content_topics"):
|
||||
contentTopics = collect(newSeq):
|
||||
for cTopic in jsonContent["content_topics"].getElems():
|
||||
cTopic.getStr()
|
||||
|
||||
var msgHashes: seq[WakuMessageHash]
|
||||
if jsonContent.contains("message_hashes"):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user