From 02d70899df3c592397a3ceb125d31a36ad185712 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 2 Mar 2022 10:48:51 -0400 Subject: [PATCH] fix: query timestamp conversion --- wakuv2/waku.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wakuv2/waku.go b/wakuv2/waku.go index c76045093..0f0396b23 100644 --- a/wakuv2/waku.go +++ b/wakuv2/waku.go @@ -869,8 +869,8 @@ func (w *Waku) Query(topics []common.TopicType, from uint64, to uint64, opts []s } query := store.Query{ - StartTime: int64(from), - EndTime: int64(to), + StartTime: int64(from) * int64(time.Second), + EndTime: int64(to) * int64(time.Second), ContentTopics: strTopics, Topic: relay.DefaultWakuTopic, }