about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--db_actions.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/db_actions.go b/db_actions.go
index 8a3bdf8..26d9b59 100644
--- a/db_actions.go
+++ b/db_actions.go
@@ -43,7 +43,7 @@ var (
 )
 
 // connectToDB returns a pointer to an sql database writing to the database
-func ConnectToDB(dbname) *sql.DB {
+func ConnectToDB(dbname string) *sql.DB {
 	connStr := fmt.Sprintf("user=%s dbname=%s sslmode=%s", DBUSER, dbname, DBSSLMODE)
 	db := dbConnect(connStr)
 	return db