This commit is contained in:
shoopea 2019-05-03 15:15:52 +08:00
parent 61faf48303
commit f60cfce4c5

2
sql.go
View File

@ -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 {