fix: double-v in version display, reset error counts on issue deletion

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-25 16:08:45 +01:00
parent 2a83a4e96c
commit c3d087bc0f
4 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -469,12 +469,14 @@ func (s *Store) DeleteAppTelemetry(appName string) (int64, error) {
return res.RowsAffected()
}
// DeleteAppIssues removes all known-issue records for a specific app.
// DeleteAppIssues removes all known-issue records for a specific app
// and zeroes the error/warning counters in telemetry history.
func (s *Store) DeleteAppIssues(appName string) (int64, error) {
res, err := s.db.Exec("DELETE FROM app_log_issues WHERE app_name = ?", appName)
if err != nil {
return 0, err
}
s.db.Exec("UPDATE app_telemetry SET log_errors = 0, log_warnings = 0 WHERE app_name = ?", appName)
return res.RowsAffected()
}