Commit 16ecff3
committed
improvement(logs): align fileSchema with shared UserFile type
- contracts/logs.ts: replace local fileSchema with mediaUserFileSchema (the established UserFile boundary schema with .passthrough())
- file-download.tsx: drop local FileData interface, use UserFile from @/executor/types1 parent 8c53a45 commit 16ecff3
2 files changed
Lines changed: 6 additions & 30 deletions
File tree
- apps/sim
- app/workspace/[workspaceId]/logs/components/log-details/components/file-download
- lib/api/contracts
Lines changed: 4 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 14 | | |
27 | | - | |
| 15 | + | |
28 | 16 | | |
29 | 17 | | |
30 | 18 | | |
31 | 19 | | |
32 | 20 | | |
33 | | - | |
| 21 | + | |
34 | 22 | | |
35 | 23 | | |
36 | 24 | | |
| |||
158 | 146 | | |
159 | 147 | | |
160 | 148 | | |
161 | | - | |
| 149 | + | |
162 | 150 | | |
163 | 151 | | |
164 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 70 | | |
83 | 71 | | |
84 | 72 | | |
| |||
237 | 225 | | |
238 | 226 | | |
239 | 227 | | |
240 | | - | |
| 228 | + | |
241 | 229 | | |
242 | 230 | | |
243 | 231 | | |
| |||
0 commit comments