summaryrefslogtreecommitdiff
path: root/persistence
diff options
context:
space:
mode:
Diffstat (limited to 'persistence')
-rw-r--r--persistence/sqlite/sqliteRepository.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/persistence/sqlite/sqliteRepository.go b/persistence/sqlite/sqliteRepository.go
index f505c19..5950d51 100644
--- a/persistence/sqlite/sqliteRepository.go
+++ b/persistence/sqlite/sqliteRepository.go
@@ -10,10 +10,6 @@ import (
"uvok.de/go/training_fellow/registration"
)
-var (
- debug bool = true
-)
-
type SqliteRepository struct {
FileName string
context context.Context
@@ -31,7 +27,7 @@ func (repo *SqliteRepository) SaveRegistration(registration *registration.Regist
}
defer db.Close()
- res, err := db.ExecContext(
+ _, err = db.ExecContext(
repo.context,
`INSERT INTO registrations
(reg_id, first_name, last_name, email, company, training_code, date, privacy_policy_accepted, confirmed)
@@ -46,9 +42,6 @@ func (repo *SqliteRepository) SaveRegistration(registration *registration.Regist
registration.PrivacyPolicyAccepted,
registration.Confirmed)
- if debug {
- log.Printf("SQL result: %v", res)
- }
return err
}