From f60cfce4c59cd26cf877bcf51568f3008368e92b Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 3 May 2019 15:15:52 +0800 Subject: [PATCH] fix --- sql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql.go b/sql.go index 3ad5429..80f2422 100644 --- a/sql.go +++ b/sql.go @@ -79,7 +79,7 @@ func initDB() { log.Println("Database set up") } -func putMsg(m *ChatWarsMessage) { +func putMsg(m ChatWarsMessage) { stmt, err := db.Prepare(`INSERT INTO msg (id, user_id, direction, date, text) VALUES (?, ?, ?, FROM_UNIXTIME(?), ?);`) if err != nil {