From ea1b6047ee04bc0efd2834884a5a65d7d8b360d8 Mon Sep 17 00:00:00 2001 From: itsscb Date: Mon, 18 Sep 2023 15:16:05 +0200 Subject: [PATCH] fix/typo in func name CreateCustomer --- db/query/customer.sql | 2 +- db/sqlc/customer.sql.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/db/query/customer.sql b/db/query/customer.sql index 42aa923..056f575 100644 --- a/db/query/customer.sql +++ b/db/query/customer.sql @@ -2,7 +2,7 @@ SELECT * FROM customers WHERE "ID" = $1 LIMIT 1; --- name: CreateCutomer :one +-- name: CreateCustomer :one INSERT INTO customers ( username, passwordhash, diff --git a/db/sqlc/customer.sql.go b/db/sqlc/customer.sql.go index 268d211..02c505e 100644 --- a/db/sqlc/customer.sql.go +++ b/db/sqlc/customer.sql.go @@ -11,7 +11,7 @@ import ( "time" ) -const createCutomer = `-- name: CreateCutomer :one +const createCustomer = `-- name: CreateCustomer :one INSERT INTO customers ( username, passwordhash, @@ -31,7 +31,7 @@ INSERT INTO customers ( ) RETURNING "ID", username, passwordhash, firstname, lastname, birthday, "privacyAccepted", "privacyAcceptedDate", email, phone, city, zip, street, country, token, "tokenValid", "tokenExpiration", creator, created, changer, changed ` -type CreateCutomerParams struct { +type CreateCustomerParams struct { Username string `json:"username"` Passwordhash string `json:"passwordhash"` Firstname string `json:"firstname"` @@ -47,8 +47,8 @@ type CreateCutomerParams struct { Changer string `json:"changer"` } -func (q *Queries) CreateCutomer(ctx context.Context, arg CreateCutomerParams) (Customer, error) { - row := q.db.QueryRowContext(ctx, createCutomer, +func (q *Queries) CreateCustomer(ctx context.Context, arg CreateCustomerParams) (Customer, error) { + row := q.db.QueryRowContext(ctx, createCustomer, arg.Username, arg.Passwordhash, arg.Firstname,