Skip to content

Conversation

@seer-by-sentry
Copy link
Contributor

Fixes GIBPOTATO-BACKEND-NK. The issue was that: Uncached potatoSentToday and potatoLeftToday methods execute identical SUM queries multiple times during validation and notification.

  • Cache the result of potatoSentToday() to avoid duplicate queries.
  • Reuse the cached result from potatoSentToday() in potatoLeftToday().
  • Pass the pre-computed potatoLeftToday value to the notification service to avoid re-querying.

This fix was generated by Seer in Sentry, triggered by Michi Hoffmann. 👁️ Run ID: 2903740

Not quite right? Click here to continue debugging with Seer.

@codecov
Copy link

codecov bot commented Nov 21, 2025

Bundle Report

Bundle size has no change ✅

@codecov
Copy link

codecov bot commented Nov 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 26.04%. Comparing base (b6005c8) to head (1d9a1e1).

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #366      +/-   ##
============================================
- Coverage     26.20%   26.04%   -0.16%     
- Complexity      323      324       +1     
============================================
  Files            77       77              
  Lines          3247     3240       -7     
============================================
- Hits            851      844       -7     
  Misses         2396     2396              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant