fix: query timestamp conversion

This commit is contained in:
Richard Ramos 2022-03-02 10:48:51 -04:00
parent 0b1c06403b
commit 02d70899df
1 changed files with 2 additions and 2 deletions

View File

@ -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,
}