summaryrefslogtreecommitdiff
path: root/server/admin/store.go
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-10-20 18:52:16 -0700
committerMichael Hunteman <michael@huntm.net>2024-10-20 18:52:16 -0700
commit5a65b3a653eb4a9ca62332fa65c8d352e6dc782f (patch)
tree6f2fabb06936a7290a2f5e94a1b3aaf4534bf87c /server/admin/store.go
parent5c8f0ca091ff7f962260c75a0ffe4c99e7cdca3c (diff)
Use UUID
Diffstat (limited to 'server/admin/store.go')
-rw-r--r--server/admin/store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/admin/store.go b/server/admin/store.go
index f36b342..65b905a 100644
--- a/server/admin/store.go
+++ b/server/admin/store.go
@@ -36,7 +36,7 @@ func (store Store) Find(requestAdmin Admin) (Admin, error) {
func createAdmin(requestAdmin Admin, adminRows pgx.Rows) (Admin, bool) {
var databaseAdmin Admin
for adminRows.Next() {
- err := adminRows.Scan(&databaseAdmin.Username, &databaseAdmin.Password)
+ err := adminRows.Scan(&databaseAdmin.Id, &databaseAdmin.Username, &databaseAdmin.Password)
if err != nil {
return Admin{}, false
}