also looking at this
Migrate :text/x-text bindings to {{ }} interpolation (stx 0.2.72)
#990
50 files
+611
-371
| @@ -33,7 +33,10 @@ export default new Action({ | ||
| 33 | 33 | })) |
| 34 | 34 | .sort((a: any, b: any) => Date.parse(b.createdAt ?? '') - Date.parse(a.createdAt ?? '')) |
| 35 | 35 | |
| 36 | return response.json({ success: true, challenges, meta: { total: challenges.length } }) | |
| 36 | // Generous default — the page filters the full set into client-side | |
| 37 | // tabs (active/sent/received/completed) and has no load-more (#978 review). | |
| 38 | const paged = paginate(challenges, readPageParams(request, { defaultLimit: 200, maxLimit: 200 })) | |
| 39 | return response.json({ success: true, challenges: paged.items, meta: paged.meta }) | |
| 37 | 40 | } |
| 38 | 41 | catch (error) { |
| 39 | 42 | console.error('[challenges] index failed:', error) |