Commit 085f52f
committed
Fix D1 adapter using wrong endpoint (/execute -> /query)
The Cloudflare D1 REST API exposes /query (and /raw) per
https://developers.cloudflare.com/api/resources/d1/subresources/database/methods/query/
but the adapter was hitting /execute, which returns 404.
The miniflare-based integration test was passing because the mock worker
was written to match the broken path — update the mock and the test
fixture's setup client so the integration test exercises the real
Cloudflare path.
Fixes #1591 parent 726a7ab commit 085f52f
3 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
| 128 | + | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments