carlos / platform Public

plan: exact helper names

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev d37a072ddfca9ae6f37ad9b5d63436cc9eb28610 parent 26f1d82
1 file changed, +2 −2
  • docs/superpowers/plans/2026-09-07-errors-step1-log-and-edge.md +2 −2
diff --git a/docs/superpowers/plans/2026-09-07-errors-step1-log-and-edge.md b/docs/superpowers/plans/2026-09-07-errors-step1-log-and-edge.md
index c8ec902d9..e04255f10 100644
--- a/docs/superpowers/plans/2026-09-07-errors-step1-log-and-edge.md
+++ b/docs/superpowers/plans/2026-09-07-errors-step1-log-and-edge.md
@@ -2430,7 +2430,7 @@ func TestAPITelemetryPutSetsLogLevel(t *testing.T) {
if status != http.StatusForbidden && status != http.StatusNotFound {
t.Fatalf("instance token PUT = %d %s", status, body)
}
- op := operateToken(t, fx) // see note below
+ op := serviceToken(t, fx.st, OpsAccountID, "ops", "titogo", svcrole.Operate)
status, _, body = rawReq(t, http.MethodPut, fx.ts.URL+"/api/cli/apps/"+fx.sqid+"/titogo/telemetry", op, `{"errors":{"log_level":"warn"}}`)
if status != http.StatusOK {
t.Fatalf("PUT = %d %s", status, body)
@@ -3190,7 +3190,7 @@ func (s *apiSession) errorsGet(ctx context.Context, a apiAcct, app string, query
}
func (s *apiSession) telemetryPut(ctx context.Context, a apiAcct, app string, body any) error {
- status, resp, err := s.sendJSON(ctx, http.MethodPut, apiPath(a, app, "/telemetry"), body) // use apimode.go's existing JSON-body sender; name it as it is there
+ status, resp, err := s.putJSON(ctx, apiPath(a, app, "/telemetry"), body)
if err != nil {
return err
}