ui(users): record last_login on /setup + sortable headers
This commit is contained in:
@@ -37,7 +37,7 @@ type apiUser struct {
|
||||
}
|
||||
|
||||
func (s *Server) handleAPIUsersList(w stdhttp.ResponseWriter, r *stdhttp.Request) {
|
||||
users, err := s.deps.Store.ListUsers(r.Context())
|
||||
users, err := s.deps.Store.ListUsers(r.Context(), store.UserSort{})
|
||||
if err != nil {
|
||||
slog.Error("api users: list", "err", err)
|
||||
writeJSONError(w, stdhttp.StatusInternalServerError, "internal", err.Error())
|
||||
|
||||
Reference in New Issue
Block a user