Commit 6db750b
authored
Fix scripts index API endpoint (#2097)
I mistakenly modified the `conn.assigns` in the ScriptsController test,
which doesn't reflect how the real world works. This PR uses
`device.product` instead of relying on the product being in
`conn.assigns`. I verified this works locally with Postman.1 parent de1a5b3 commit 6db750b
File tree
2 files changed
+2
-3
lines changed- lib/nerves_hub_web/controllers/api
- test/nerves_hub_web/controllers/api
2 files changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
0 commit comments