From 8c2e223a43ae5cb7c404322c59b6ead2fa1d146b Mon Sep 17 00:00:00 2001 From: Ivan Folgueira Bande Date: Fri, 12 Apr 2024 12:31:01 +0200 Subject: [PATCH 1/2] rest store: content_topic -> contentTopic in the response --- waku/waku_api/rest/store/types.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waku/waku_api/rest/store/types.nim b/waku/waku_api/rest/store/types.nim index 8d08e8693c..6bda496252 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(): From eee2cbfc91b6d63e3c6705da2fd0867f8d2d7e1c Mon Sep 17 00:00:00 2001 From: Ivan Folgueira Bande Date: Fri, 12 Apr 2024 17:05:24 +0200 Subject: [PATCH 2/2] rest store types: add content_topc -> contentTopic that I had missed --- waku/waku_api/rest/store/types.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waku/waku_api/rest/store/types.nim b/waku/waku_api/rest/store/types.nim index 6bda496252..7519b4fc69 100644 --- a/waku/waku_api/rest/store/types.nim +++ b/waku/waku_api/rest/store/types.nim @@ -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))