Commit f011b4f
committed
fix: resolve 'unknown' model in cycle spend anomaly alerts
getCycleSpendWithModels used the global MAX(date) to find models,
so users inactive on the latest day got NULL. Now uses each user's
own most recent active date instead.
Made-with: Cursor1 parent fe9d415 commit f011b4f
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3021 | 3021 | | |
3022 | 3022 | | |
3023 | 3023 | | |
3024 | | - | |
3025 | | - | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
3026 | 3029 | | |
3027 | 3030 | | |
3028 | 3031 | | |
| |||
0 commit comments