mirror of
https://github.com/waku-org/nwaku.git
synced 2025-03-01 07:20:54 +00:00
fix: rest store: content_topic -> contentTopic in the response (#2584)
This commit is contained in:
parent
269139cf28
commit
d257855353
@ -140,7 +140,7 @@ proc writeValue*(
|
||||
writer.beginRecord()
|
||||
writer.writeField("payload", $value.payload)
|
||||
if value.contentTopic.isSome():
|
||||
writer.writeField("content_topic", value.contentTopic.get())
|
||||
writer.writeField("contentTopic", value.contentTopic.get())
|
||||
if value.version.isSome():
|
||||
writer.writeField("version", value.version.get())
|
||||
if value.timestamp.isSome():
|
||||
@ -176,7 +176,7 @@ proc readValue*(
|
||||
case fieldName
|
||||
of "payload":
|
||||
payload = some(reader.readValue(Base64String))
|
||||
of "content_topic":
|
||||
of "contentTopic":
|
||||
contentTopic = some(reader.readValue(ContentTopic))
|
||||
of "version":
|
||||
version = some(reader.readValue(uint32))
|
||||
|
Loading…
x
Reference in New Issue
Block a user