From 34dbd46732bbc73ae9c94b9206161197e53b1005 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 4 Jun 2020 16:14:56 -0400 Subject: [PATCH] sql --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 1873b2a..e20540c 100644 --- a/main.go +++ b/main.go @@ -182,7 +182,7 @@ func SaveUser(username string, d UserData) bool { func Bump(username string, ip string) { log.Printf("bump: username = %s, ip = %s", username, ip) - q := fmt.Sprintf("update %s_auth set lastseen=CURRENT_TIMESTAMP, set lastseenip=$2 where username ILIKE $1", c.TablePrefix) + q := fmt.Sprintf("update %s_auth set lastseen=CURRENT_TIMESTAMP, lastseenip=$2 where username ILIKE $1", c.TablePrefix) _, err := c.db.Exec(q, username, ip) if err != nil { log.Printf("scsusers.Bump: Error on user bump: %s : %s\n", username, err.Error())