From 7e803cfc20e338d4ed8475196aad90b3b2f50870 Mon Sep 17 00:00:00 2001
From: Emile <hanemile@protonmail.com>
Date: Wed, 6 Mar 2019 16:07:23 +0100
Subject: simple fix

---
 db_actions.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
cgit 1.4.1