From 27e9b42fcc80ddc27c08f20bdcc23f5b1b464eee Mon Sep 17 00:00:00 2001 From: Toan Nhu Date: Mon, 24 Jun 2024 14:37:20 +0700 Subject: [PATCH] mod: update message date key --- internal/app/indexer/save.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/app/indexer/save.go b/internal/app/indexer/save.go index 9975c7a..20db687 100644 --- a/internal/app/indexer/save.go +++ b/internal/app/indexer/save.go @@ -45,7 +45,6 @@ func (s *Service) insertData( Uint32("op_id", message.OperationID). Msg("parse message payload") } - message = message.WithDateKey() } if err := func() error { @@ -197,6 +196,8 @@ func (s *Service) uniqMessages(ctx context.Context, transactions []*core.Transac continue } } + + msg = msg.WithDateKey() if len(msg.Hash) > 0 { msg.HashHex = hex.EncodeToString(msg.Hash) }