Skip to content

Commit 4197d46

Browse files
author
Claude
committed
admin: fix typo in handleAdminIssueDesktop — writeOK not writeJSON
Previous commit (09298d1) referenced a writeJSON helper that doesn't exist in server.go; the actual helper is writeOK and always returns 200 (which matches what we want here anyway). Caught by Railway build presumably failing.
1 parent 09298d1 commit 4197d46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/apiserver/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ func (s *Server) handleAdminIssueDesktop(w http.ResponseWriter, r *http.Request)
10781078
log.Printf("[admin/issue-desktop] minted tier=%s customer=%s email=%s expires=%d",
10791079
req.Tier, req.CustomerID, req.Email, expiresAt)
10801080

1081-
writeJSON(w, http.StatusOK, map[string]any{
1081+
writeOK(w, map[string]any{
10821082
"key": key,
10831083
"tier": req.Tier,
10841084
"customer_id": req.CustomerID,

0 commit comments

Comments
 (0)