From 250ef5536d04be91e53af514c445b712dff960ef Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sat, 9 Dec 2023 17:53:14 +0000 Subject: sql: continue on scan error, don't append nil --- persistence/sqlite/sqliteRepository.go | 1 + 1 file changed, 1 insertion(+) diff --git a/persistence/sqlite/sqliteRepository.go b/persistence/sqlite/sqliteRepository.go index 76ac46f..7b66c80 100644 --- a/persistence/sqlite/sqliteRepository.go +++ b/persistence/sqlite/sqliteRepository.go @@ -77,6 +77,7 @@ func (repo *sqliteRepository) GetUnconfirmedRegistrations() ([]*registration.Reg reg, err := rowToRegistration(res) if err != nil { log.Printf("Error scanning: %v", err) + continue } regArray = append(regArray, reg) } -- cgit v1.2.3