diff --git a/waku/waku_api/rest/store/types.nim b/waku/waku_api/rest/store/types.nim index 8d08e8693c..7519b4fc69 100644 --- a/waku/waku_api/rest/store/types.nim +++ b/waku/waku_api/rest/store/types.nim @@ -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))