set country code based on env variable, update compat date

This commit is contained in:
uh wot 2023-11-26 19:21:04 +01:00
parent a3735ab79c
commit c4d96f6936
Signed by: uhwot
GPG Key ID: CB2454984587B781
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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" }]