diff --git a/pkg/contacts.go b/pkg/contacts.go index 9b6cee5..84b3314 100644 --- a/pkg/contacts.go +++ b/pkg/contacts.go @@ -414,7 +414,7 @@ func ServeEditContactTags(w http.ResponseWriter, r *http.Request, params httprou company := getCompany(r) slug := params[0].Value form := newTagsForm(companyURI(company, "/contacts/"+slug+"/tags"), slug, locale) - if notFoundErrorOrPanic(conn.QueryRow(r.Context(), `select array_to_string(tags, ',') from contact where slug = $1`, form.Slug).Scan(&form.Tags)) { + if notFoundErrorOrPanic(conn.QueryRow(r.Context(), `select array_to_string(tags, ',') from contact where slug = $1`, form.Slug).Scan(form.Tags)) { http.NotFound(w, r) return } diff --git a/pkg/expenses.go b/pkg/expenses.go index e3691a2..1468205 100644 --- a/pkg/expenses.go +++ b/pkg/expenses.go @@ -397,7 +397,7 @@ func ServeEditExpenseTags(w http.ResponseWriter, r *http.Request, params httprou company := getCompany(r) slug := params[0].Value form := newTagsForm(companyURI(company, "/expenses/"+slug+"/tags"), slug, locale) - if notFoundErrorOrPanic(conn.QueryRow(r.Context(), `select array_to_string(tags, ',') from expense where slug = $1`, form.Slug).Scan(&form.Tags)) { + if notFoundErrorOrPanic(conn.QueryRow(r.Context(), `select array_to_string(tags, ',') from expense where slug = $1`, form.Slug).Scan(form.Tags)) { http.NotFound(w, r) return } diff --git a/pkg/invoices.go b/pkg/invoices.go index a74b02a..1bb3392 100644 --- a/pkg/invoices.go +++ b/pkg/invoices.go @@ -1066,7 +1066,7 @@ func ServeEditInvoiceTags(w http.ResponseWriter, r *http.Request, params httprou company := getCompany(r) slug := params[0].Value form := newTagsForm(companyURI(company, "/invoices/"+slug+"/tags"), slug, locale) - if notFoundErrorOrPanic(conn.QueryRow(r.Context(), `select array_to_string(tags, ',') from invoice where slug = $1`, form.Slug).Scan(&form.Tags)) { + if notFoundErrorOrPanic(conn.QueryRow(r.Context(), `select array_to_string(tags, ',') from invoice where slug = $1`, form.Slug).Scan(form.Tags)) { http.NotFound(w, r) return } diff --git a/pkg/products.go b/pkg/products.go index f462d85..76ee7d4 100644 --- a/pkg/products.go +++ b/pkg/products.go @@ -359,7 +359,7 @@ func ServeEditProductTags(w http.ResponseWriter, r *http.Request, params httprou company := getCompany(r) slug := params[0].Value form := newTagsForm(companyURI(company, "/products/"+slug+"/tags"), slug, locale) - if notFoundErrorOrPanic(conn.QueryRow(r.Context(), `select array_to_string(tags, ',') from product where slug = $1`, form.Slug).Scan(&form.Tags)) { + if notFoundErrorOrPanic(conn.QueryRow(r.Context(), `select array_to_string(tags, ',') from product where slug = $1`, form.Slug).Scan(form.Tags)) { http.NotFound(w, r) return }