Commit d221490
committed
fix(webapp): normalize taskKind in API + drop unsafe casts in playground action
ApiRunListPresenter was returning `run.taskKind` raw from ClickHouse
where the column defaults to `""` for pre-migration rows, while the
dashboard's NextRunListPresenter normalizes to `"STANDARD"`. API
consumers and the dashboard now agree.
Playground action's two `as unknown as AuthenticatedEnvironment`
casts were redundant — `findEnvironmentBySlug` already returns
`Promise<AuthenticatedEnvironment | null>`. Drop the casts (and the
now-unused import) so a future change to the function's return shape
actually surfaces as a type error instead of crashing at runtime.1 parent 02dca08 commit d221490
2 files changed
Lines changed: 6 additions & 7 deletions
File tree
- apps/webapp/app
- presenters/v3
- routes
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
308 | 311 | | |
309 | 312 | | |
310 | 313 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
180 | 179 | | |
181 | 180 | | |
182 | 181 | | |
183 | | - | |
| 182 | + | |
184 | 183 | | |
185 | 184 | | |
186 | 185 | | |
| |||
225 | 224 | | |
226 | 225 | | |
227 | 226 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 227 | + | |
232 | 228 | | |
233 | 229 | | |
234 | 230 | | |
| |||
0 commit comments