Commit 7df2746
Ope Olatunji
fix: add GET /archive/:tab endpoint, fix archive loading spinner
- Added GET /polymarket/:agentId/archive/:tab endpoint (trades, exits, alerts, events)
- Returns archived rows from *_archive tables with count
- Gracefully returns empty result if archive table doesn't exist yet
- Dashboard archive toggle now handles errors instead of spinning forever
- Fixed archive API call using selectedAgent instead of agentId variable1 parent c7f1bef commit 7df2746
3 files changed
+32
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4286 | 4286 | | |
4287 | 4287 | | |
4288 | 4288 | | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
| 4293 | + | |
| 4294 | + | |
| 4295 | + | |
| 4296 | + | |
| 4297 | + | |
| 4298 | + | |
| 4299 | + | |
| 4300 | + | |
| 4301 | + | |
| 4302 | + | |
| 4303 | + | |
| 4304 | + | |
| 4305 | + | |
| 4306 | + | |
| 4307 | + | |
| 4308 | + | |
| 4309 | + | |
| 4310 | + | |
| 4311 | + | |
| 4312 | + | |
| 4313 | + | |
| 4314 | + | |
| 4315 | + | |
4289 | 4316 | | |
4290 | 4317 | | |
4291 | 4318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1624 | 1624 | | |
1625 | 1625 | | |
1626 | 1626 | | |
1627 | | - | |
| 1627 | + | |
1628 | 1628 | | |
1629 | | - | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
1630 | 1632 | | |
1631 | 1633 | | |
1632 | 1634 | | |
| |||
0 commit comments