mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-05 11:34:45 +00:00
rest/store/types: contentTopic -> content_topic (#2646)
This commit is contained in:
parent
8d1b0834db
commit
28389cf043
@ -72,7 +72,7 @@ proc writeValue*(
|
||||
writer.beginRecord()
|
||||
|
||||
writer.writeField("payload", base64.encode(msg.payload))
|
||||
writer.writeField("contentTopic", msg.contentTopic)
|
||||
writer.writeField("content_topic", msg.contentTopic)
|
||||
|
||||
if msg.meta.len > 0:
|
||||
writer.writeField("meta", base64.encode(msg.meta))
|
||||
@ -114,7 +114,7 @@ proc readValue*(
|
||||
let base64String = reader.readValue(Base64String)
|
||||
payload = base64.decode(base64String).valueOr:
|
||||
reader.raiseUnexpectedField("Failed decoding data", "payload")
|
||||
of "contentTopic":
|
||||
of "content_topic":
|
||||
contentTopic = reader.readValue(ContentTopic)
|
||||
of "version":
|
||||
version = reader.readValue(uint32)
|
||||
|
Loading…
x
Reference in New Issue
Block a user