Skip to content

fix: remove duplicate sumUserCostInTimeRange function#364

Merged
ding113 merged 1 commit intofeat/user-panelfrom
claude-fix-pr-362-20344971971
Dec 18, 2025
Merged

fix: remove duplicate sumUserCostInTimeRange function#364
ding113 merged 1 commit intofeat/user-panelfrom
claude-fix-pr-362-20344971971

Conversation

@github-actions
Copy link
Contributor

CI Auto-Fix

Original PR: #362
Failed CI Run: PR Build Check

Problem

The build failed with TypeScript errors:

  • TS2323: Cannot redeclare exported variable 'sumUserCostInTimeRange'
  • TS2393: Duplicate function implementation

The function sumUserCostInTimeRange was defined twice in src/repository/statistics.ts:

  • First definition at line 816
  • Second (duplicate) definition at line 874

Fix Applied

File Fix Type
src/repository/statistics.ts Removed duplicate function definition (lines 871-892) TypeScript duplicate export

Verification

  • bun run typecheck passes
  • bun run lint passes
  • No logic changes made - both functions were identical

Auto-generated by Claude AI

The function `sumUserCostInTimeRange` was defined twice in statistics.ts
(lines 816 and 874), causing TypeScript compilation to fail with:
- TS2323: Cannot redeclare exported variable 'sumUserCostInTimeRange'
- TS2393: Duplicate function implementation

Both implementations were identical. Removed the second duplicate definition.

CI Run: https://github.com/ding113/claude-code-hub/actions/runs/20344971971

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@ding113 ding113 merged this pull request into feat/user-panel Dec 18, 2025
@github-project-automation github-project-automation bot moved this from Backlog to Done in Claude Code Hub Roadmap Dec 18, 2025
@ding113 ding113 deleted the claude-fix-pr-362-20344971971 branch December 23, 2025 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant

Comments