api.spaceplanner.app

Spaceplanner API
git clone git://jacobedwards.org/api.spaceplanner.app
Log | Files | Refs

commit 19d963decc8a89940f56a32769daa44398e9d167
parent 40b49c8950cf6c24900fb424f237faad715cefb0
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Sun,  6 Oct 2024 16:21:58 -0700

Fix reference to users table without schema

Diffstat:
Minternal/backend/user.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internal/backend/user.go b/internal/backend/user.go @@ -287,7 +287,7 @@ func scanUser(s Scanner) (User, error) { } func (e *Env) insertUser(tx *sql.Tx, user User) error { - stmt, err := e.CacheTxStmt(tx, "insert_user", "INSERT INTO users (name, hash, stripe_customer_id) VALUES ($1, $2, $3)") + stmt, err := e.CacheTxStmt(tx, "insert_user", "INSERT INTO spaceplanner.users (name, hash, stripe_customer_id) VALUES ($1, $2, $3)") if err != nil { return err }