refactor: use heartbeat endpoint consistently

This commit is contained in:
2026-04-04 08:05:49 +00:00
parent 65f521dce0
commit 758d3d1c59
2 changed files with 3 additions and 3 deletions

View File

@@ -98,7 +98,7 @@ func Send(ctx context.Context, client *http.Client, cfg config.Config, payload P
return fmt.Errorf("marshal payload: %w", err)
}
req, err := http.NewRequestWithContext(ctx, http.MethodPost, strings.TrimRight(cfg.BackendURL, "/")+"/monitor/server/heartbeat-v2", strings.NewReader(string(body)))
req, err := http.NewRequestWithContext(ctx, http.MethodPost, strings.TrimRight(cfg.BackendURL, "/")+"/monitor/server/heartbeat", strings.NewReader(string(body)))
if err != nil {
return fmt.Errorf("build request: %w", err)
}