summaryrefslogtreecommitdiff
path: root/export.go
diff options
context:
space:
mode:
Diffstat (limited to 'export.go')
-rw-r--r--export.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/export.go b/export.go
index 69481d1..8d91de4 100644
--- a/export.go
+++ b/export.go
@@ -44,12 +44,12 @@ func handleExport(w http.ResponseWriter, req *http.Request) {
return
}
- var userID, userName, userDepartment string
+ var userDepartment string
err = db.QueryRow(
req.Context(),
- "SELECT id, name, department FROM users WHERE session = $1",
+ "SELECT department FROM users WHERE session = $1",
sessionCookie.Value,
- ).Scan(&userID, &userName, &userDepartment)
+ ).Scan(&userDepartment)
if err != nil {
if errors.Is(err, pgx.ErrNoRows) {
wstr(