Skip to content

fix: rm redundant query#1023

Open
jona159 wants to merge 2 commits into
devfrom
fix/rm-redundant-db-query
Open

fix: rm redundant query#1023
jona159 wants to merge 2 commits into
devfrom
fix/rm-redundant-db-query

Conversation

@jona159

@jona159 jona159 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Type of Change

  • Dependency upgrade
  • Bug fix (non-breaking change)
  • Breaking change
    • e.g. a fixed bug or new feature that may break something else
  • New feature
  • Code quality improvements
    • e.g. refactoring, documentation, tests, tooling, ...

Implementation

Checklist

  • I gave this pull request a meaningful title
  • My pull request is targeting the dev branch
  • I have added documentation to my code
  • I have deleted code that I have commented out

Additional Information

  • This PR closes #

@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 67.4% 2194 / 3255
🔵 Statements 65.87% 2264 / 3437
🔵 Functions 64.98% 425 / 654
🔵 Branches 51.43% 1042 / 2026
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
app/db/models/measurement.server.ts 57.53% 36.36% 69.23% 57.35% 33-158, 184, 185, 197-201, 320
Generated in workflow #2779 for commit ac4ea11 by the Vitest Coverage Report Action

}

if (currentDevice.archivedAt) {
throw new ArchivedDeviceError(currentDevice.id)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimalDevice should carry the archivedAt field, you can keep the check but get rid of the redundant lookup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants