~emersion/soju-dev

Fix store user query values v1 APPLIED

Dan Shick: 1
 Fix store user query values

 1 files changed, 1 insertions(+), 1 deletions(-)
No problem.
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/soju-dev/patches/11999/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] Fix store user query values Export this patch

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

diff --git a/db.go b/db.go
index 54d80a9..46d04df 100644
--- a/db.go
+++ b/db.go
@@ -240,7 +240,7 @@ func (db *DB) StoreUser(user *User) error {
			password, user.Admin, user.Username)
	} else {
		var res sql.Result
		res, err = db.db.Exec("INSERT INTO User(username, password, admin) VALUES (?, ?, ?, ?)",
		res, err = db.db.Exec("INSERT INTO User(username, password, admin) VALUES (?, ?, ?)",
			user.Username, password, user.Admin)
		if err != nil {
			return err
-- 
2.28.0
Good catch! Pushed, thanks!