diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 21:23:00 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 21:23:00 +0800 |
commit | ed069956471b57d408ecfe2b415eb9dcf08e6c53 (patch) | |
tree | 4050675d0940ca76c50dd551628520e74da6cb0d /http_handle_index.go | |
parent | Use cmd/forge for the entry point (diff) | |
download | forge-ed069956471b57d408ecfe2b415eb9dcf08e6c53.tar.gz forge-ed069956471b57d408ecfe2b415eb9dcf08e6c53.tar.zst forge-ed069956471b57d408ecfe2b415eb9dcf08e6c53.zip |
Export symbols from database.go
Diffstat (limited to 'http_handle_index.go')
-rw-r--r-- | http_handle_index.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http_handle_index.go b/http_handle_index.go index a519a5a..fd89a86 100644 --- a/http_handle_index.go +++ b/http_handle_index.go @@ -14,9 +14,9 @@ import ( // and some global information such as SSH keys. func (s *Server) httpHandleIndex(writer http.ResponseWriter, request *http.Request, params map[string]any) { var err error - var groups []nameDesc + var groups []NameDesc - groups, err = s.queryNameDesc(request.Context(), "SELECT name, COALESCE(description, '') FROM groups WHERE parent_group IS NULL") + groups, err = s.QueryNameDesc(request.Context(), "SELECT name, COALESCE(description, '') FROM groups WHERE parent_group IS NULL") if err != nil { errorPage500(writer, params, "Error querying groups: "+err.Error()) return |