Commit 43f8bd2
🐛 fix(gateway): graceful fallback when expenses table doesn't exist yet
The /summary endpoint crashed with 'relation "expenses" does not exist'
when migration 021 hasn't been run yet. Added .catch() fallbacks so the
endpoint returns zero values for expenses instead of 500 error.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ed9b26f commit 43f8bd2
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
655 | | - | |
656 | | - | |
| 655 | + | |
| 656 | + | |
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| |||
0 commit comments