diff options
Diffstat (limited to 'src/utils/shoelace.js')
| -rw-r--r-- | src/utils/shoelace.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/utils/shoelace.js b/src/utils/shoelace.js index 63b9c79..d79aee7 100644 --- a/src/utils/shoelace.js +++ b/src/utils/shoelace.js @@ -7,7 +7,7 @@ * footpring("details", { id: 3 }) */ -const FINAL_DATE = "2021-12-01T00:00:00"; +const FINAL_DATE = "2021-11-01T00:00:00"; const SHOEBOX_CODE = "no6092"; const SHOELACE_CODE = "shoelace"; @@ -68,14 +68,14 @@ async function requestWithMethod(method, href, data) { mode: "cors", }; - if (method === "GET") { - if (data) { - urlObject.search = new URLSearchParams(data).toString(); - } - } else { - requestOptions.headers["Content-Type"] = "application/json"; - requestOptions.body = JSON.stringify(data); - } + // if (method === "GET") { + // if (data) { + // urlObject.search = new URLSearchParams(data).toString(); + // } + // } else { + requestOptions.headers["Content-Type"] = "application/json"; + requestOptions.body = JSON.stringify(data); + // } let response; response = await fetch(urlObject, requestOptions); |
