From a4802e51c525cd657205d9750ee9a649b2ac6afe Mon Sep 17 00:00:00 2001 From: Niclas Blomberg Date: Tue, 23 Jul 2024 13:22:11 +0200 Subject: [PATCH] fix(db): remove old columns from query --- database/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/database.go b/database/database.go index b4fec418..06318f81 100644 --- a/database/database.go +++ b/database/database.go @@ -477,7 +477,7 @@ func (s *DatabaseService) UpsertBlockBuilderEntryAfterSubmission(lastSubmission } func (s *DatabaseService) GetBlockBuilders() ([]*BlockBuilderEntry, error) { - query := `SELECT id, inserted_at, builder_pubkey, description, is_high_prio, is_blacklisted, is_optimistic, collateral, builder_id, last_submission_id, last_submission_slot, num_submissions_total, num_submissions_simerror, num_sent_getpayload FROM ` + vars.TableBlockBuilder + ` ORDER BY id ASC;` + query := `SELECT id, inserted_at, builder_pubkey, description, is_high_prio, is_blacklisted, is_optimistic, collateral, builder_id, num_sent_getpayload FROM ` + vars.TableBlockBuilder + ` ORDER BY id ASC;` entries := []*BlockBuilderEntry{} err := s.DB.Select(&entries, query) return entries, err