diff --git a/src/index.js b/src/index.js index 5981423..29e6415 100644 --- a/src/index.js +++ b/src/index.js @@ -150,7 +150,7 @@ async function get_items(type, id, aq, vq, host, env) { const res = await api_call(env, 'GET', `${type}/${id}/items`, { offset: 0, limit: 4294967295, - countryCode: 'US', + countryCode: env.COUNTRY_CODE, }) console.log(res.status, res.json) diff --git a/wrangler.toml b/wrangler.toml index 975f13a..14bc9c9 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1,4 +1,4 @@ name = "tdl" main = "src/index.js" -compatibility_date = "2023-11-03" +compatibility_date = "2023-11-26" kv_namespaces = [{ binding = "KV", id = "0d7e90e0fb2444ee83c06a25ce476b6a", preview_id = "7bfc3ebb77034d7d81cca73b1c35348f" }] \ No newline at end of file