From daf4ca8d15aa2d0caee7cbb928ec6d366478ac8a Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Mon, 10 Jun 2024 21:35:08 +0200 Subject: [PATCH] Fix query --- cmd/soroban-rpc/internal/db/db.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/soroban-rpc/internal/db/db.go b/cmd/soroban-rpc/internal/db/db.go index 73d4713a..126b0e20 100644 --- a/cmd/soroban-rpc/internal/db/db.go +++ b/cmd/soroban-rpc/internal/db/db.go @@ -110,9 +110,9 @@ func GetMetaBool(ctx context.Context, q db.SessionInterface, key string) (bool, } func SetMetaBool(ctx context.Context, q db.SessionInterface, key string) error { - _, err := sq.Replace(metaTableName). - Values(latestLedgerSequenceMetaKey, "true"). - Exec() + query := sq.Replace(metaTableName). + Values(key, "true") + _, err := q.Exec(ctx, query) return err }