From d2578553530f789147104cd9ac7c035615289b21 Mon Sep 17 00:00:00 2001 From: Ivan FB <128452529+Ivansete-status@users.noreply.github.com> Date: Fri, 12 Apr 2024 17:47:32 +0200 Subject: [PATCH] fix: rest store: content_topic -> contentTopic in the response (#2584) --- waku/waku_api/rest/store/types.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))