solve via PUT (POST no-oped) #4

Merged
ic-builder merged 2 commits from ic-builder/solve-put into main 2026-09-06 18:29:22 +00:00
2 changed files with 1 additions and 1 deletions
Showing only changes of commit f7ffa441f6 - Show all commits
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -228,7 +228,7 @@ func (b *bridge) handle(w http.ResponseWriter, r *http.Request) {
if err := b.glpi.followup(tid, fu); err != nil { if err := b.glpi.followup(tid, fu); err != nil {
log.Printf("followup failed (continuing to solve): %v", err) log.Printf("followup failed (continuing to solve): %v", err)
} }
if err := b.glpi.do("POST", fmt.Sprintf("/Ticket/%d", tid), map[string]any{"input": map[string]any{"status": 11}}, nil); err != nil { // 11 = solved if err := b.glpi.do("POST", fmt.Sprintf("/Ticket/%d", tid), map[string]any{"input": map[string]any{"status": 5}}, nil); err != nil { // 11 = solved
log.Printf("solve failed: %v", err) log.Printf("solve failed: %v", err)
} }
}() }()