Skip to content

Commit

Permalink
fix: rest store: content_topic -> contentTopic in the response (#2584)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivansete-status authored Apr 12, 2024
1 parent 269139c commit d257855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions waku/waku_api/rest/store/types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit d257855

Please sign in to comment.